Skip to content

[INTERNAL](typings) Use typing.Optional instead of typing.Union[type,NoneType] #507

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

Closed
kumaraditya303 opened this issue Feb 14, 2021 · 1 comment

Comments

@kumaraditya303
Copy link
Contributor

Python's typing module has a dedicated Optional type for nullable types but in the playwright docs, typing.Union is being used and can be confusing for the users.

Solution:
Replace all occurrences of typing.Union with typing.Optional. @mxschmitt @pavelfeldman

@pavelfeldman
Copy link
Member

I think 3.9 did it for us.

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

2 participants