2

I am using this solution to merge two dictionaries in python in pycharm Community Edition 4.5.4. But the following code is showing error, although when I run the code it works perfect:

feats = {**feats, **feature_detector(words)} # one big dictionary

How can I disable it in pycharm?

EDIT

Here are the screenshots:

enter image description here

enter image description here

enter image description here

enter image description here

And here is the options that I get after hitting alt+Enter:

enter image description here

Community
  • 1
  • 1
psr
  • 2,619
  • 4
  • 32
  • 57
  • Please attach a screenshot with error – user2235698 Sep 17 '16 at 16:29
  • Have a look at the edit, I've attached the screenshots – psr Sep 19 '16 at 05:07
  • In the bottom-right, you have a face. (next to that lock). Click on it, and then select any `Syntax`. This will only highlight serious formatting problems. Or you could hit `Alt+Enter` and select `Ignore errors like this`. But I think this will have to be done each time you open PyCharm – SnuKies Sep 19 '16 at 08:13
  • I tried setting the slider to `None`, `Syntax` and `Exceptions`. Nothing happens. @SnuKies please have a look at the Edit, I don't get anything like `Ignore errors like this` – psr Sep 19 '16 at 09:13
  • Hmm.. I do not know. Usually, on the scrollbar, a line will appear for every exception (like yours). When I change from `Exceptions` to `Syntax`, those line would (the majority) disappear... – SnuKies Sep 19 '16 at 09:43
  • Updating PyCharm helped resolving the issue. :) – psr Sep 19 '16 at 10:00

1 Answers1

1

Well I figured out that updating PyCharm may help resolve the issue. So I downloaded the latest version (2016.2.3). And then there was no error.

psr
  • 2,619
  • 4
  • 32
  • 57