Skip to content

support PEP 484 #493

@phi-friday

Description

@phi-friday

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

No type hint is written, resulting in a static analysis that differs from annotations.
ex: xi accepts float, but is inferred to be int because of the default.

스크린샷 2024-07-09 오전 9 04 26

This also causes some issues with static analysis and using the IDE.

Describe the solution you'd like
Add the correct type hint.

References or alternative approaches
https://peps.python.org/pep-0484/

Additional context
If you decide to support type hint, I'll contribute.
However, since a lot of changes are planned in #447 , i'll start with modules that are not related to #447 .

Are you able and willing to implement this feature yourself and open a pull request?

  • Yes, I can provide this feature.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions