mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Simplify tests a bit
This commit is contained in:
@@ -573,25 +573,13 @@ class Bar(Foo):
|
|||||||
an_int
|
an_int
|
||||||
|
|
||||||
def typed_dict_test_foo(arg: Bar):
|
def typed_dict_test_foo(arg: Bar):
|
||||||
a_string = arg['foo']
|
|
||||||
a_list_of_floats = arg['bar']
|
|
||||||
an_int = arg['an_int']
|
|
||||||
another_variable = arg['another_variable']
|
|
||||||
|
|
||||||
#? str()
|
#? str()
|
||||||
a_string
|
arg['foo']
|
||||||
#? list()
|
#? list()
|
||||||
a_list_of_floats
|
arg['bar']
|
||||||
#? float()
|
#? float()
|
||||||
a_list_of_floats[0]
|
arg['bar'][0]
|
||||||
#? int()
|
#? int()
|
||||||
an_int
|
arg['an_int']
|
||||||
#? int()
|
#? int()
|
||||||
another_variable
|
arg['another_variable']
|
||||||
|
|
||||||
#? ['isupper']
|
|
||||||
a_string.isuppe
|
|
||||||
#? ['pop']
|
|
||||||
a_list_of_floats.po
|
|
||||||
#? ['as_integer_ratio']
|
|
||||||
an_int.as_integer_rati
|
|
||||||
|
|||||||
Reference in New Issue
Block a user