-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
not-callable false positive for types.FunctionType #7500
Copy link
Copy link
Closed
Labels
False Positive 🦟A message is emitted but nothing is wrong with the codeA message is emitted but nothing is wrong with the codeHacktoberfestHelp wanted 🙏Outside help would be appreciated, good for new contributorsOutside help would be appreciated, good for new contributorsNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementation
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
False Positive 🦟A message is emitted but nothing is wrong with the codeA message is emitted but nothing is wrong with the codeHacktoberfestHelp wanted 🙏Outside help would be appreciated, good for new contributorsOutside help would be appreciated, good for new contributorsNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementation
Bug description
A more complete example of public code constructing
types.FunctionCodeobject can be found at:https://github.com/python/cpython/blob/34de67c094776bdc719d87f8810e053a2acc915a/Lib/asyncio/__main__.py#L32
Configuration
No response
Command used
Pylint output
************* Module repro repro.py:6:0: E1102: types.FunctionType(code, {}) is not callable (not-callable) ------------------------------------------------------------------ Your code has been rated at 0.00/10 (previous run: 0.00/10, +0.00)Expected behavior
No error.
Pylint version
OS / Environment
Kubuntu 22.04.1 LTS
Additional dependencies
No response