@@ -71,16 +71,16 @@ def __init__(self, normalize=six.text_type): # type: (Callable) -> None
71
71
self .normalize = normalize
72
72
73
73
def __getitem__ (self , key ): # type: (Any) -> Any
74
- return super (NormDict , self ).__getitem__ (self .normalize (key )) # type: ignore
74
+ return super (NormDict , self ).__getitem__ (self .normalize (key ))
75
75
76
76
def __setitem__ (self , key , value ): # type: (Any, Any) -> Any
77
77
return super (NormDict , self ).__setitem__ (self .normalize (key ), value )
78
78
79
79
def __delitem__ (self , key ): # type: (Any) -> Any
80
- return super (NormDict , self ).__delitem__ (self .normalize (key )) # type: ignore
80
+ return super (NormDict , self ).__delitem__ (self .normalize (key ))
81
81
82
82
def __contains__ (self , key ): # type: (Any) -> Any
83
- return super (NormDict , self ).__contains__ (self .normalize (key )) # type: ignore
83
+ return super (NormDict , self ).__contains__ (self .normalize (key ))
84
84
85
85
86
86
def merge_properties (a , b ): # type: (List[Any], List[Any]) -> Dict[Any, Any]
@@ -814,7 +814,7 @@ def resolve_all(self,
814
814
document .lc .data [
815
815
j - 1 ] = document .lc .data [j - llen ]
816
816
for item in l :
817
- document .insert (i , item ) # type: ignore
817
+ document .insert (i , item )
818
818
document .lc .data [i ] = lc
819
819
i += 1
820
820
else :
@@ -852,7 +852,7 @@ def fetch(self, url, inject_ids=True): # type: (Text, bool) -> Any
852
852
else :
853
853
textIO = StringIO (text )
854
854
textIO .name = url # type: ignore
855
- result = yaml .round_trip_load (textIO ) # type: ignore
855
+ result = yaml .round_trip_load (textIO )
856
856
add_lc_filename (result , url )
857
857
except yaml .parser .ParserError as e :
858
858
raise validate .ValidationException ("Syntax error %s" % (e ))
@@ -1008,7 +1008,7 @@ def _copy_dict_without_key(from_dict, filtered_key):
1008
1008
# type: (D, Any) -> D
1009
1009
new_dict = copy .copy (from_dict )
1010
1010
if filtered_key in new_dict :
1011
- del new_dict [filtered_key ] # type: ignore
1011
+ del new_dict [filtered_key ]
1012
1012
if isinstance (from_dict , CommentedMap ):
1013
1013
new_dict .lc .data = copy .copy (from_dict .lc .data )
1014
1014
new_dict .lc .filename = from_dict .lc .filename
0 commit comments