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
I'm not sure if we should distinguish different variations of a generic Pattern type. We can treat them all like Pattern[str] unless there is a reasonable use of Pattern[bytes].
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
There is a standard type
Pattern
https://docs.python.org/3/library/typing.html#typing.Pattern. Support for annotationsre.Pattern
andtyping.Pattern
could be useful.Describe the solution you'd like
A
Pattern
object can be deserialized from string usingre.compile
:For serialization we can use
pattern
property:I'm not sure if we should distinguish different variations of a generic
Pattern
type. We can treat them all likePattern[str]
unless there is a reasonable use ofPattern[bytes]
.The text was updated successfully, but these errors were encountered: