@@ -18,32 +18,27 @@ class AnnotatedValue:
1818
1919 __slots__ = ("value" , "metadata" )
2020
21- def __init__ (self , value , metadata ):
22- # type: (Optional[Any], Dict[str, Any]) -> None
21+ def __init__ (self , value : "Optional[Any]" , metadata : "Dict[str, Any]" ) -> None :
2322 self .value = value
2423 self .metadata = metadata
2524
26- def __eq__ (self , other ):
27- # type: (Any) -> bool
25+ def __eq__ (self , other : "Any" ) -> bool :
2826 if not isinstance (other , AnnotatedValue ):
2927 return False
3028
3129 return self .value == other .value and self .metadata == other .metadata
3230
33- def __str__ (self ):
34- # type: (AnnotatedValue) -> str
31+ def __str__ (self : "AnnotatedValue" ) -> str :
3532 return str ({"value" : str (self .value ), "metadata" : str (self .metadata )})
3633
37- def __len__ (self ):
38- # type: (AnnotatedValue) -> int
34+ def __len__ (self : "AnnotatedValue" ) -> int :
3935 if self .value is not None :
4036 return len (self .value )
4137 else :
4238 return 0
4339
4440 @classmethod
45- def removed_because_raw_data (cls ):
46- # type: () -> AnnotatedValue
41+ def removed_because_raw_data (cls ) -> "AnnotatedValue" :
4742 """The value was removed because it could not be parsed. This is done for request body values that are not json nor a form."""
4843 return AnnotatedValue (
4944 value = "" ,
@@ -58,8 +53,7 @@ def removed_because_raw_data(cls):
5853 )
5954
6055 @classmethod
61- def removed_because_over_size_limit (cls , value = "" ):
62- # type: (Any) -> AnnotatedValue
56+ def removed_because_over_size_limit (cls , value : "Any" = "" ) -> "AnnotatedValue" :
6357 """
6458 The actual value was removed because the size of the field exceeded the configured maximum size,
6559 for example specified with the max_request_body_size sdk option.
@@ -77,8 +71,7 @@ def removed_because_over_size_limit(cls, value=""):
7771 )
7872
7973 @classmethod
80- def substituted_because_contains_sensitive_data (cls ):
81- # type: () -> AnnotatedValue
74+ def substituted_because_contains_sensitive_data (cls ) -> "AnnotatedValue" :
8275 """The actual value was removed because it contained sensitive information."""
8376 return AnnotatedValue (
8477 value = SENSITIVE_DATA_SUBSTITUTE ,
@@ -116,7 +109,7 @@ def substituted_because_contains_sensitive_data(cls):
116109 class SDKInfo (TypedDict ):
117110 name : str
118111 version : str
119- packages : Sequence [Mapping [str , str ]]
112+ packages : " Sequence[Mapping[str, str]]"
120113
121114 # "critical" is an alias of "fatal" recognized by Relay
122115 LogLevelStr = Literal ["fatal" , "critical" , "error" , "warning" , "info" , "debug" ]
0 commit comments