This PR adds pyright as a development dependency so that static typechecking can be run via hatch run pyright. The pyrightconfig.json is pointed only at the edgar/ directory.
I also fixed the type errors that I found in _filings.py, which were the original motivation for making this change.
This PR adds pyright as a development dependency so that static typechecking can be run via
hatch run pyright
. The pyrightconfig.json is pointed only at the edgar/ directory.I also fixed the type errors that I found in
_filings.py
, which were the original motivation for making this change.Before:
After:
I'm happy to keep chipping away at other parts of the repo (probably documents.py next).