Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace FileLanguage class with a Language enum #39

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Pennycook
Copy link
Contributor

  • Avoids referencing languages by name (as strings).
  • Enables multiple constructors (from_path and from_ext).
  • Enables a dedicated sentinel value (UNKNOWN) instead of None.

- Avoids referencing languages by name (as strings).
- Enables multiple constructors (from_path and from_ext).
- Enables a dedicated sentinel value (UNKNOWN) instead of None.

Signed-off-by: John Pennycook <john.pennycook@intel.com>
@Pennycook Pennycook added the enhancement New feature or request label Jan 29, 2024
We can convert None into Language.UNKNOWN automatically, so there is no need to
break downstream users of these functions.

Signed-off-by: John Pennycook <john.pennycook@intel.com>
@Pennycook Pennycook added this to the 1.3.0 milestone Jan 30, 2024
@Pennycook Pennycook modified the milestones: 1.3.0, 2.0.0 Feb 22, 2024
@Pennycook Pennycook marked this pull request as draft February 23, 2024 19:24
@Pennycook Pennycook added refactor Improvements to code structure and removed enhancement New feature or request labels Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Improvements to code structure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant