Skip to content

Avoid marking non-aliased imports as private #1558

@MrWardKKHS

Description

@MrWardKKHS

Bug Report

It is standard (see PEP 484 stub file section) to mark redundantly
imported items as exported.

Pyright users currently see a linting error when using arcade.color and other imports from arcade in the global namespace.

System Info

Run this and paste the output here: python -m arcade

Arcade 3.0.0.dev13

vendor: Intel
renderer: Intel(R) Iris(R) Xe Graphics
version: (3, 3)
python: 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)]
platform: win32
pyglet version: 2.0.4
PIL version: 9.4.0

Actual behavior:

Pyright displays an error
image

Expected behavior:

No linting for these symbols

Steps to reproduce/example code:

any use of arcade.color, arcade.key, arcade.experimental etc. while using pyright

Enhancement request:

What should be added/changed?

Imports from the arcade init file should be redundantly aliased as themselves
from arcade import color as color etc

What would it help with?

Linting and static type checking for pyright users.

Documentation request:

What documentation needs to change?

Where is it located?

What is wrong with it? How can it be improved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions