Skip to content

Incorrect types for ZConst.get_remap() generated attributes #342

@sveinse

Description

@sveinse

ZConst.get_remap() has incorrect type signature. It should be dict[str, int] | dict[int, str] because it also creates a reverse lookup (where key and values are reversed) from the created key: value dict.

The code should be investigated to what direction (int->str vs str->int) is being used and make two separate methods for each of the directions.

Note

This issue touching another issue #341 which deals with how these lookups are being generated. Please consider both when fixing them.

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