Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 5, 2025
1 parent d57d081 commit b90bc14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_typed.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ class MyTypedDoc(MySubTypedDoc):
my_typed_doc.my_typed_map.wrong_key = "foo"
assert (
str(excinfo.value)
== "\"<class 'test_typed.test_typed.<locals>.MyTypedMap1'>\" has no attribute \"wrong_key\""
== '"<class \'test_typed.test_typed.<locals>.MyTypedMap1\'>" has no attribute "wrong_key"'
)

with pytest.raises(AttributeError) as excinfo:
my_typed_doc.my_typed_map.wrong_key
assert (
str(excinfo.value)
== "\"<class 'test_typed.test_typed.<locals>.MyTypedMap1'>\" has no attribute \"wrong_key\""
== '"<class \'test_typed.test_typed.<locals>.MyTypedMap1\'>" has no attribute "wrong_key"'
)

my_typed_doc.my_array.append(True)
Expand Down

0 comments on commit b90bc14

Please sign in to comment.