Skip to content

Conversation

@majdzadeh
Copy link
Contributor

@majdzadeh majdzadeh commented Jun 6, 2025

A single StrEnum class is defined and imported by Order and Asset classes.

Resolves #788

Description by Korbit AI

What change is being made?

Deduplicate the StrEnum implementation by consolidating it into lumibot/tools/types.py and updating references in asset.py and order.py to import from this central location.

Why are these changes being made?

These changes streamline the codebase by eliminating duplicate definitions of the StrEnum class, reducing redundancy, and ensuring consistent behavior across different modules. This approach also makes maintaining the StrEnum class more manageable by centralizing its implementation.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

A single `StrEnum` class is defined and imported by `Order` and `Asset`
classes.

Resolves Lumiwealth#788
Copy link
Contributor

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've completed my review and didn't find any issues.

Files scanned
File Path Reviewed
lumibot/tools/types.py
lumibot/entities/asset.py
lumibot/entities/order.py

Explore our documentation to understand the languages and file types we support and the files we ignore.

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

@majdzadeh
Copy link
Contributor Author

@grzesir
Kindly take a look whenever you're free. Thanks.

@majdzadeh
Copy link
Contributor Author

@grzesir
Could you please check the PR?

@majdzadeh
Copy link
Contributor Author

@grzesir
May I know your review policy? It's been around 2 months that I have raised this PR which resolves an issue in the library and I see no traction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate StrEnum class

1 participant