Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
python
/
testData
/
pyi
/
inspections
/
overloadedGenerics
/
m1.pyi
blob: e32fa4e85adee072da2add62f4e64a2f92ace34f [
file
]
from
typing
import
overload
,
TypeVar
,
Generic
def
g
(
x
:
dict
)
->
None
:
...
T
=
TypeVar
(
'T'
)
class
Gen
(
Generic
[
T
]):
def
__init__
(
self
,
x
:
T
):
...
@overload
def
get
(
self
,
x
:
int
,
y
:
T
)
->
T
:
...
@overload
def
get
(
self
,
x
:
str
,
y
:
T
)
->
T
:
...