Skip to content

Incorrect type annotations on TransifexAPI members #119

Open
@JelleZijlstra

Description

@JelleZijlstra

The transifex.api.TransifexApi contains a number of lines of the form Team: JsonApiResource (

# Auto-completion support
). A comment says this is for autocompletion support.

However, these type annotations are incorrect as the class has attributes that contain types (subclasses of JsonAPiResource), not instances. This leads type checkers to show incorrect errors when these attributes are used.

To fix, the code should have lines of the form type[JsonApiResource] instead, indicating that the attributes contain types, not instances.

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