Skip to content

Remove pandas.io.stata from Typing Blacklist #25932

Closed
@WillAyd

Description

@WillAyd

Here's the list of current errors:

pandas/io/stata.py:32: error: Module 'pandas' has no attribute 'DatetimeIndex'
pandas/io/stata.py:32: error: Module 'pandas' has no attribute 'concat'
pandas/io/stata.py:32: error: Module 'pandas' has no attribute 'isna'
pandas/io/stata.py:32: error: Module 'pandas' has no attribute 'to_datetime'
pandas/io/stata.py:32: error: Module 'pandas' has no attribute 'to_timedelta'
pandas/io/stata.py:1730: error: Name 'data_label' already defined on line 1052

For the former we should just use absolute imports instead of pulling from top level pandas object (per discussion in #25923). The last issue I think is just a method shadowing a instance variable which I think can safely be removed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Typingtype annotations, mypy/pyright type checkinggood first issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions