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

Create a type alias for stripe.TaxId.type and others #1324

Open

Description

Is your feature request related to a problem? Please describe.

I want to re-use the long list of VAT types for my internal methods. Currently, they are copy pasted throughout the library. This means there's no way to just re-use them as a type alias.

Describe the solution you'd like

Create a typing.TypeAlias with the string literals and expose it.

Describe alternatives you've considered

Creating a type alias from the existing class properties did not work. This might be because of my limited understanding of how type hints can be re-used or extracted from external libraries.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

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