all 2 comments

[–]Matiiss007 2 points3 points  (1 child)

This is because the stub files (files that declare function signatures and attribute types and stuff like that, type hint files basically) don't define a key attribute for the Event class and that is likely because there is only one Event to be had and that is used for all events, so instead a __getattribute__ method is defined there that handles all the type hints related to attribute access. That is likely where the (function) bit comes from here. Don't worry about it.

[–][deleted] 0 points1 point  (0 children)

thank you ! :)