functiondefined in builtins.pyi:
class function:
__name__ = ...
__qualname__ = ...
__module__ = ...
__code__ = ...
__annotations__ = ...
Keep in mind that I have used “specific” and specific. Check out this absurdity:
foo = function
promotions
Traceback (most recent call last):
File "main.py", line 117, in <module>
foo = function
NameError: name 'function' is not defined
function = 'a', IDE ( ), ( function ).
module.
, ( , -, , , ) pyi , ( PEP-484 ).
, , Pycharm linter (, "" .pyi) .
, , , .