Skip to content

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

Closed
@kumaraditya303

Description

@kumaraditya303

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions