mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Fix typos.
This commit is contained in:
parent
fdbcbeea45
commit
d7b6df86a7
2 changed files with 3 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ def _coerce(datatype, value, call=True):
|
|||
# decl types
|
||||
elif isinstance(datatype, Enum):
|
||||
value = _coerce(datatype.datatype, value, call=False)
|
||||
if value in datatype.choices:
|
||||
if value in datatype.choice:
|
||||
return value
|
||||
elif isinstance(datatype, Union):
|
||||
for dt in datatype:
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ class ModuleTests(unittest.TestCase):
|
|||
# ...
|
||||
str,
|
||||
Field('a'),
|
||||
Fields(Field('a')),
|
||||
#Fields(Field('a')),
|
||||
Spam,
|
||||
Array(Spam),
|
||||
Union(Array(Spam)),
|
||||
|
|
@ -431,7 +431,7 @@ class FieldsTests(unittest.TestCase):
|
|||
Field('ham'),
|
||||
Field('eggs', Array(str)),
|
||||
)
|
||||
result = fields.as_dict
|
||||
result = fields.as_dict()
|
||||
|
||||
self.assertEqual(result, {
|
||||
'spam': fields[0],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue