You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Issue in Python 3.11+ with setting base_url for GraphServiceClient #818
Changed Enum.format() (the default for format(), str.format() and f-strings) to always produce the same result as Enum.str(): for enums inheriting from ReprEnum it will be the member’s value; for all other enums it will be the enum and member name (e.g. Color.RED).
Activity
peter-equinor commentedon Jan 30, 2025
This seems to have been listed as a change in python 3.11 here: https://docs.python.org/3/whatsnew/3.11.html#enum
peter-equinor commentedon Jan 30, 2025
To reproduce:
Running this in python 3.11 and newer returns
NationalClouds.Global/APIVersion.v1/chrizzo1984 commentedon Jan 30, 2025
Same problem here.
The problem is now that it needs to be with .value.
beko0014 commentedon Jan 30, 2025
Same problem here.
method create_with_default_middleware does not use value of Enums.
Update _enums.py
fix: issue with national cloud/version enums and base url being set #818