Skip to content

Fix MetaArg string representation for Python 3.10 compatibility - #61

Closed
manuelcandales wants to merge 1 commit into
mainfrom
manuel/meta-arg-str
Closed

manuelcandales wants to merge 1 commit into
mainfrom
manuel/meta-arg-str

Conversation

@manuelcandales

Copy link
Copy Markdown
Contributor

Use explicit .name attribute to ensure consistent enum string formatting across Python 3.10 and Python 3.11+

In Python 3.11+, str(str_enum) returns the qualified name, but in Python 3.10 it returns just the value. Using .name ensures we always get 'ArgType.IntOpt' format as expected by tests.

Use explicit .name attribute to ensure consistent enum string formatting
across Python 3.10 and Python 3.11+

In Python 3.11+, str(str_enum) returns the qualified name, but in
Python 3.10 it returns just the value. Using .name ensures we always
get 'ArgType.IntOpt' format as expected by tests.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Feb 6, 2026
@meta-codesync

meta-codesync Bot commented Feb 6, 2026

Copy link
Copy Markdown

@manuelcandales has imported this pull request. If you are a Meta employee, you can view this in D92566662.

@meta-codesync

meta-codesync Bot commented Feb 10, 2026

Copy link
Copy Markdown

@manuelcandales merged this pull request in 333ecb1.

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

Labels

CLA Signed This label is managed by the Meta Open Source bot. Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants