File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
aws_doc_sdk_examples_tools Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 44
55from .metadata_errors import ErrorsList
66
7- K = TypeVar ("K" )
8-
9-
10- class InvalidItemException (Exception ):
11- def __init__ (self , item : K ):
12- super ().__init__ (self , f"Cannot append { item !r} to EntityErrors" )
7+ # K = TypeVar("K")
138
149
1510@dataclass
Original file line number Diff line number Diff line change 11import pytest
22from .entities import (
33 EntityErrors ,
4- InvalidItemException ,
54 expand_all_entities ,
65 MissingEntityError ,
76)
7+ from .metadata_errors import InvalidItemException
88
99
1010def test_entity_errors_append ():
@@ -14,7 +14,8 @@ def test_entity_errors_append():
1414 assert errors ._errors [0 ].entity == "entity1"
1515
1616 with pytest .raises (InvalidItemException ):
17- errors .append ("invalid item" )
17+ # test runtime type checking
18+ errors .append ("invalid item" ) # type: ignore
1819
1920
2021def test_expand_missing_entities ():
You can’t perform that action at this time.
0 commit comments