Skip to content

CLN: Add typing for dtype argument in codebase #38808

Closed
@avinashpancham

Description

@avinashpancham

Follow up from #37546 and #38680

Add typing for the dtype argument throughout the pandas codebase. Part of the code might need an update after adding the type since the mypy type checks can fail.

In #38680 it is already done for io/sql.py, from a directory search I found that the list of files below still have untyped dtype arguments.

Would be great if people can work on a few files at a time in separate PRs and mention this issue. I will already start with the remaining files in the io directory

  • io/parsers.py
  • io/excel/_base.py
  • io/json/_json.py
  • io/pytables.py
  • core/arrays/datetimelike.py
  • core/arrays/base.py
  • core/arrays/boolean.py
  • core/arrays/categorical.py
  • core/arrays/integer.py
  • core/arrays/interval.py
  • core/arrays/masked.py
  • core/arrays/numpy_.py
  • core/arrays/period.py
  • core/arrays/sparse/array.py
  • core/arrays/string_.py
  • core/arrays/string_arrow.py
  • core/arrays/timedeltas.py
  • core/indexes/category.py
  • core/indexes/datetimes.py
  • core/indexes/interval.py
  • core/indexes/numeric.py
  • core/indexes/period.py
  • core/indexes/range.py
  • core/internals/block.py
  • core/internals/managers.py
  • core/reshape/reshape.py
  • core/strings/object_array.py
  • core/base.py
  • core/common.py
  • core/frame.py
  • core/generic.py
  • core/series.py

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