mypy recognizes Config.config_file_name as Union[str, bytes, PathLike[str], PathLike[bytes], int]
#1077
Unanswered
georgegarrington
asked this question in
Usage Questions
Replies: 0 comments 1 reply
-
Hi, this seems to be for alembic. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I came across this issue when running mypy on the alembic/env.py file, using mypy 0.971 and alembic 1.8.1. The docs say Config.config_file_name is
Optional[str]
: https://alembic.sqlalchemy.org/en/latest/api/config.html#:~:text=Filesystem%20path%20to%20the%20.ini%20file%20in%20use. It looks to me this could be from the standard library mypy stubs updating the type of filepath toUnion[str, bytes, PathLike[str], PathLike[bytes], int]
Beta Was this translation helpful? Give feedback.
All reactions