Why are all Python method parameters red?

Answered

I've got a bit of Python code in IntelliJ and what strikes me is that, although ctrl-clicking on the parameters leads me to the correct method definition, with the cursor on the exact parameter, they are displayed as red, as if something's wrong with them:

What am I doing wrong?

MacOS, IntelliJ 2019.3.4, Python plugin 193.6911.25

7
4 comments

Hello, 

 

It looks like a normal coloring scheme of a code in the IDE.  Usually, errors are underlined or highlighted with an information message pop-up. 

0

I'm encountering this issue too. It's irritating since there doesn't actually seem to be anything wrong with the syntax as per OP's comment. In my particular case, I'm experiencing this in a Jupiter notebook. Antonina's comment is unhelpful.

2

You can change the color in the Settings under Editor -> Color Scheme -> Python -> Keyword argument.

1

It's easy enough to change, but red should not be the default color for keyword arguments.

4

Please sign in to leave a comment.