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

Sign up
Appearance settings

TYP/DOC: importing from api.py/__init__.py #48186

Open
Labels
API Design Needs DiscussionRequires discussion from core team before further action Typingtype annotations, mypy/pyright type checking
@twoertwein

Description

Two questions related to symbols exported in the various api.py files that currently come up in a few pandas-stubs PRs.

  1. Are all symbols in the api.py files meant to be public (I assume yes, some might be missing in the docs)
  2. Is it intended to import directly from those api.py files (I assume no, instead they should be imported from the pandas namespace)

Similar to api.py, users might want to import symbols from __init__.py files. I assume symbols in __init__.py might not necessarily be public and should not be important from there (except from the root __init__.py).

@Dr-Irv @bashtage @jreback

Metadata

Metadata

Assignees

No one assigned

    Labels

    API Design Needs DiscussionRequires discussion from core team before further action Typingtype annotations, mypy/pyright type checking

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /