weak warning in PyCharm: Unexpected argument

14,786

I posted an issue - having similar warnings in Python 2. I believe it's a bug in their inspection (in PyCharm 5), but let's see how they respond.

To moderators: this is a valid answer as recognized by the OP. It is not a "comment". Please read carefully before deleting.

Share:
14,786
michen00
Author by

michen00

Certified machine learning engineer based in Southern California Open to opportunities (local or remote) in artificial intelligence, data science, or machine learning MS information science; BS psychology; 2nd major linguistics; minor cognitive science English, Mandarin Chinese, Spanish I'm a lifelong learner and always curious. I am a full-stack machine learning developer with practical experience in every stage of the data lifecycle. After working in bioinformatics at a virology lab, I earned a master's from one of the highest-ranking information schools in the US and traveled to research and write about global airport cities and aerotropolises. To deepen my expertise in data science and artificial intelligence, I completed Springboard's intensive machine learning engineering certification program. My experiences in many fields of work and study enable a multifaceted approach to mastering new concepts and solving problems in a variety of contexts: Formal education provided a solid foundation in academic writing, critical thinking, quantitative methods, and human subjects research. As a CEO's executive assistant, I practiced creative problem-solving. Customer service roles cultivated patience. Self-employment honed my grit and resilience. Logistics and moving companies taught me how it feels to work with my hands. Multinational collaboration developed cultural awareness. Sales and office roles have further nurtured my people skills. Business is about people. People make decisions — not companies. So let's guide our decisions with evidence and data. Hit me up and we can talk more. Contact me directly at [email protected]. Outside work, I enjoy cats, k-pop, fitness, martial arts, music, nature, travel, and video games. Languages: Python, SQL, JavaScript, SAS, Java Libraries and frameworks: Scikit-learn, statsmodels, TensorFlow, PySpark, Pandas, NumPy, SciPy, Matplotlib, Seaborn, pytest, Streamlit Other tools: Jupyter Lab, Jupyter Notebook, Visual Studio Code, PowerShell, Git, Sublime, Travis CI, Excel, Windows Subsystem for Linux Keywords: Classification, Clustering, Data Analysis, Data Cleaning, Data Visualization, Data Wrangling, Deep Learning, Experimental Design, Exploratory Data Analysis (EDA), Hyperparameter Optimization, JSON, Neural Networks, Optimisation, Predictive Modelling, Regression, Statistical Modeling, Statistics, Supervised Learning, Unsupervised Learning, Visualisation.

Updated on June 10, 2022

Comments

  • michen00
    michen00 about 2 years

    This inspection reports discrepancies between declared parameters and actual arguments, as well as incorrect arguments (e.g. duplicate named arguments) and incorrect argument order. Decorators are analyzed, too.

    ^That's what PyCharm is telling me. It's a weak warning, so my code runs fine.

    import collections
    var_dict = {}
    var_dict = collections.OrderedDict(sorted(var_dict.items()))
    

    ^This is the line of code in question. I believe the warning has to do with the OrderedDict call.

    I checked the OrderedDict documentation for Python 3.5, but I'm still nonplussed.

    Why am I getting this warning? I'm using PyCharm Community Edition 5.0.1

  • michen00
    michen00 over 8 years
    OP here. Yes, a bug would explain why I have a weak warning still. If no new news appears before tomorrow, when the bounty expires, I will accept this answer.
  • Bob Stein
    Bob Stein almost 7 years
    Your issue appears to have been fixed, but only in isolated cases. In particular a new issue identifies false warnings with e.g. collections.defaultdict(None, dict(a=1)) or collections.OrderedDict(dict(a=1))