Skip to content

Type hint _Array on Python 3.9, ..., 3.11 #357

Description

@JamesParrott

Describe the feature request

Is there a way to avoid the current 'type: ignore, and limit the generic variable to int and float?

class _Array(array.array, Generic[ARR_TYPE]): # type: ignore[type-arg]

This would justify typing-extensions, if that would help

Contributions

  • I am interested in implementing the described feature request and submit as a PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions