The py.typed marker has not been added to the repo, making mypy consider the repo untyped (while it is typed).
With the py.typed in place, subclassing the ReaderClass and passing such an implementation to the reader_class init parameter will yield a type error; the reader_class is typed to expect an instance of the AbstractReaderClass instead of an instance of a subclass (Type[AbstractReaderClass]).
The
py.typedmarker has not been added to the repo, making mypy consider the repo untyped (while it is typed).With the
py.typedin place, subclassing theReaderClassand passing such an implementation to thereader_classinit parameter will yield a type error; thereader_classis typed to expect an instance of theAbstractReaderClassinstead of an instance of a subclass (Type[AbstractReaderClass]).