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:
497497 yield from bytes_repr_type (arg , cache )
498498 yield b")"
499499 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 ):
501503 try :
502504 yield b"mime-like:(" + klass .mime_like .encode () + b")"
503505 except fileformats .core .exceptions .FormatDefinitionError :
Original file line number Diff line number Diff line change @@ -375,6 +375,13 @@ def test_bytes_special_form5():
375375 )
376376
377377
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+
378385def test_recursive_object ():
379386 a = []
380387 b = [a ]
You can’t perform that action at this time.
0 commit comments