dgilland / pydash

The kitchen sink of Python utility libraries for doing "stuff" in a functional way. Based on the Lo-Dash Javascript library.
http://pydash.readthedocs.io
MIT License
1.28k stars 89 forks source link

Strange warning when importing pydash.get in PyCharm. #227

Closed huypxgear closed 4 days ago

huypxgear commented 5 days ago

I got a strange warning when importing pydash.get in PyCharm.

Code: schedules = offer.get('schedules', None)

Warning:

Fixture 'offer.get' is not requested by test functions or @pytest.mark.usefixtures marker

dgilland commented 5 days ago

How is offer define?

There are several PyCharm bugs reported about similar warnings:

huypxgear commented 4 days ago

How is offer define?

it is just a normal dict like that offer = {'test': {}}

The strange thing is that the warning only appears when importing pydash.get. If I remove the import line, the warning disappears. The warning appears for every line of code when I use the .getfunction. I guess it might be a PyCharm issue, confusingdict.get with pydash.get

image

dgilland commented 4 days ago

I guess it might be a PyCharm issue, confusing dict.get with pydash.get

That seems to track with what other are reporting in the JetBrains tickets.