File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ def type_name(tp):
242
242
origin = ty .get_origin (klass )
243
243
if origin :
244
244
yield f"{ origin .__module__ } .{ type_name (origin )} [" .encode ()
245
- yield from bytes_repr_sequence_contents ( ty .get_args (klass ), cache )
245
+ yield from ( b for t in ty .get_args (klass ) for b in bytes_repr_type ( t , cache ) )
246
246
yield b"]"
247
247
else :
248
248
yield f"{ klass .__module__ } .{ type_name (klass )} " .encode ()
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ class MyClass(ty.Generic[T]):
181
181
pass
182
182
183
183
obj_repr = join_bytes_repr (MyClass [int ])
184
- assert re . match ( rb "type:\ (pydra.utils.tests.test_hash.MyClass\[.{16}\]\)" , obj_repr )
184
+ assert obj_repr == b "type:(pydra.utils.tests.test_hash.MyClass[type:(int)])"
185
185
186
186
187
187
def test_bytes_special_form1 ():
You can’t perform that action at this time.
0 commit comments