Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single type factory args #12

Merged
merged 7 commits into from
Feb 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
doc fix
Ben Avrahami committed Feb 7, 2024
commit 0d449ef2c83dca3d8c116778a30779cbfd7dcca8
2 changes: 1 addition & 1 deletion envolved/parsers.py
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@
# theoretically, I'd like to restrict this to keyword arguments only, but that's not possible yet in python
Parser: TypeAlias = Callable[Concatenate[str, ...], T]
else:
# we can't use Concatenate[str, ...] in type aliases in python 3.9-
# we can only use Concatenate[str, ...] in python 3.11+
Parser: TypeAlias = Callable[[str], T] # type: ignore[misc, no-redef]

ParserInput = Union[Parser[T], Type[T]]