Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

csv.Reader is not re-exported and recognized as a member for Python 3.10+ #14108

Copy link
Copy link
Closed as not planned
@Daraan

Description

@Daraan
Issue body actions

The current csv.pyi stubs import Reader like this:

if sys.version_info >= (3, 10):
    from _csv import Reader, Writer
else:
    from _csv import _reader as Reader, _writer as Writer

For Python 3.10 as it is not re-exported via as Reader or included in __all__ pyright and mypy do not recognize it as a member of csv and will complain when csv.Reader is used that csv has no member Reader.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.