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
fails with Not all arguments converted during string formatting. Using this as Responses.TEMPLATED.value.format(value=42) fixes the issue. Both ways actually work with string enums at runtime (only the latter works with normal enums).
The text was updated successfully, but these errors were encountered:
Fixes#7563
Inside `check_str_format_call` method, it checks if expression of
`format` method call is an Enum member and it takes Literal value of
that Enum member to check the `format` call arguments, if so.
This code:
fails with
Not all arguments converted during string formatting
. Using this asResponses.TEMPLATED.value.format(value=42)
fixes the issue. Both ways actually work with string enums at runtime (only the latter works with normal enums).The text was updated successfully, but these errors were encountered: