3 changed files with 15 additions and 15 deletions
@ -0,0 +1,11 @@ |
|||||
|
from typing import Any, Tuple |
||||
|
|
||||
|
from typing_extensions import Protocol |
||||
|
|
||||
|
|
||||
|
class GenericTypeProtocol(Protocol): |
||||
|
class OriginTypeProtocol(Protocol): |
||||
|
__parameters__: Tuple[Any] |
||||
|
|
||||
|
__origin__: OriginTypeProtocol |
||||
|
__args__: Tuple[Any] |
@ -1,9 +0,0 @@ |
|||||
from typing import Any, Tuple |
|
||||
|
|
||||
|
|
||||
class GenericTypeStub: |
|
||||
class OriginTypeStub: |
|
||||
__parameters__: Tuple[Any] |
|
||||
|
|
||||
__origin__: OriginTypeStub |
|
||||
__args__: Tuple[Any] |
|
Loading…
Reference in new issue