Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-123339: Fix cases of inconsistency of __module__ and __first…
…lineno__ in classes * Setting the __module__ attribute for a class now removes the __firstlineno__ item from the type's dict. * The _collections_abc and _pydecimal modules now completely replace the collections.abc and decimal modules after importing the latters. This allows to get the source of classes and functions defined in these modules. * inspect.findsource() now checks whether the first line number for a class is out of bound.
- Loading branch information