-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Try to make bson.regex.Regex generic on the pattern type (either str or bytes). Then try_compile can return the appropriate generic type.