File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -497,7 +497,9 @@ def type_location(tp: type) -> bytes:
497
497
yield from bytes_repr_type (arg , cache )
498
498
yield b")"
499
499
else :
500
- if inspect .isclass (klass ) and issubclass (klass , FileSet ):
500
+ if klass is Ellipsis :
501
+ yield b"..."
502
+ elif inspect .isclass (klass ) and issubclass (klass , FileSet ):
501
503
try :
502
504
yield b"mime-like:(" + klass .mime_like .encode () + b")"
503
505
except fileformats .core .exceptions .FormatDefinitionError :
Original file line number Diff line number Diff line change @@ -375,6 +375,13 @@ def test_bytes_special_form5():
375
375
)
376
376
377
377
378
+ def test_bytes_special_form6 ():
379
+ obj_repr = join_bytes_repr (ty .Tuple [float , ...])
380
+ assert obj_repr == (
381
+ b"type:(origin:(type:(builtins.tuple)),args:(type:(builtins.float)type:(...)))"
382
+ )
383
+
384
+
378
385
def test_recursive_object ():
379
386
a = []
380
387
b = [a ]
You can’t perform that action at this time.
0 commit comments