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

Typing aliases are missing #4

Closed
badge opened this issue Nov 9, 2022 · 2 comments
Closed

Typing aliases are missing #4

badge opened this issue Nov 9, 2022 · 2 comments

Comments

@badge
Copy link
Member

badge commented Nov 9, 2022

Type aliases are currently missing in places, leading to crazy return signatures such as:

Union[
    Callable[
        [Callable[Concatenate[Dict[str, Any], _P], Dict[str, Any]]],
        AwsEventRawCallable,
    ],
    Callable[
        [Callable[Concatenate[AwsEventType, _P], LambdaResponse]],
        AwsEventRawCallable,
    ],
]
@badge
Copy link
Member Author

badge commented Nov 9, 2022

This is caused by python/mypy#11855, in particular neither Concatenate nor ParamSpec are supported by TypeAlias in mypy.

@badge badge closed this as completed Nov 9, 2022
@badge badge reopened this Nov 9, 2022
badge pushed a commit to badge/lambda-handler that referenced this issue Jul 3, 2023
@badge
Copy link
Member Author

badge commented Jul 31, 2023

Fixed in 2.0.0

@badge badge closed this as completed Jul 31, 2023
badge pushed a commit to badge/lambda-handler that referenced this issue Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant