"Unexpected Argument" False Warning

I am using PyCharm Professional 2020.1. On a script where I import Polygon from matplotlib.patches, I keep getting a "Unexpected Argument" warning when using the .set_xy method. I am providing the required argument, xy, in my code, and the script executes properly. How can I get PyCharm to stop giving me this false warning?

Thanks!

5
5 comments

Hello, 

 

Please attach a simple code example to reproduce the behavior. 

 

Thank you in advance! 

0
from matplotlib.patches import Polygon
from pylab import zeros, ones
if __name__ == '__main__':
p = Polygon(zeros((100, 2)), facecolor="r", closed="False", edgecolor="none", alpha=0.3)
p.set_xy(ones((100, 2)))
0

Thank you for the provided example! I was able to reproduce it. 

 

I have created a ticket  https://youtrack.jetbrains.com/issue/PY-42057 please vote for it in order to increase its priority. 

 

Information on how to use YouTrack: https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications

0
Avatar
Permanently deleted user

Hi - what is the status of this bug report ? I am also experiencing it when the python plugin and it is very distracting. Thanks.

 

0

Hi, 

 

Bugs and features are fixed depending on the votes in the issue tracker as well as on the pull requests proposed by the community. Please vote for to be updated on a fix. 

0

Please sign in to leave a comment.