Skip to content

COMPAT: Don't use re module's private type #20551

Closed
@TomAugspurger

Description

@TomAugspurger

return isinstance(obj, re._pattern_type)

In 3.6+ there's typing.re.Pattern. Otherwise, there's _re_type = type(re.compile('')).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Compatpandas objects compatability with Numpy or Python functionsRefactorInternal refactoring of codegood first issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions