| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Specifically, this was confusing to mypy. The new code is slightly easier to understand if you don't know what's going on, IMO, otherwise I wouldn't necessarily change valid upstream code to appease a typechecker. Specifically, before this change: $ mypy dateutil/zoneinfo/__init__.py | grep zoneinfo dateutil/zoneinfo/__init__.py:18: error: Name 'tzfile' already defined (possibly by an import) dateutil/zoneinfo/__init__.py:18: error: Cycle in inheritance hierarchy That Cycle inheritance one is bad enough to cause mypy to give an error even with `--follow-imports=silent`, which might be a bug in mypy.
|
This is very reasonable. I will merge when the tests pass. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Specifically, this was confusing to mypy.
The new code is slightly easier to understand if you don't know what's going
on, IMO, otherwise I wouldn't necessarily change valid upstream code to appease
a typechecker.
Specifically, before this change:
That Cycle inheritance one is bad enough to cause mypy to give an error even
with --follow-imports=silent, which might be a bug in mypy, but, like I said,
I think the new code is more obvious to humans.