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
This is consistent with the docs, which indicate that the seq parameter is required (note the lack of surrounding brackets). So, not exactly a bug, but probably a reasonable feature request.
cc @rhettinger: what was the rationale of having a required seq? was it an oversight or was it because an empty user-defined string should rather be instantiated using '' instead (namely, there is no real use-case for an empty UserString)
Description
Subtypes of
UserString
cannot be initialized without aseq
argument as the builtinstr
can.Reproduction
Workaround
CPython versions tested on:
3.13
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: