Skip to content

[BUG] (🐞) typing.Pattern used in type hints are not supplied type parameters #1415

@KotlinIsland

Description

@KotlinIsland

def expect_navigation(
self,
*,
url: typing.Union[str, typing.Pattern, typing.Callable[[str], bool]] = None,
wait_until: Literal["commit", "domcontentloaded", "load", "networkidle"] = None,
timeout: float = None
) -> EventContextManager["Response"]:

page.expect_navigation(
  re.compile("abc")  # error: expression contains Any
)

typing.Pattern expects one type parameter, usually AnyStr.

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