Skip to content

Move TimeFrame Units To Class Definition #641

@fisher60

Description

@fisher60

Is there an existing issue for this?

  • I have searched the existing issues

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

The unit attributes for the TimeFrame class are assigned after the TimeFrame class is defined. This results in intellisense being unable to find/recognize these attributes as being a part of the class and makes writing this code more difficult.

Describe the solution you'd like.

The TimeFrame Unit definitions should be added as class attributes or as properties of the TimeFrame class. This would allow intellisense to autocomplete the code and identify the attributes as existing in code. This also helps to make the code a bit easier to read and more self-documenting

Describe an alternate solution.

A python stub file can be used instead of altering the codebase and achieve the same results

Anything else? (Additional Context)

Example of the issue in Pycharm:
image

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