File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -285,16 +285,17 @@ class SDKInfo(TypedDict):
285285 "type" : str ,
286286 "asgi" : _ASGIInfo ,
287287 "http_version" : str ,
288- "server" : tuple [str , int ],
289- "client" : tuple [str , int ],
290- "scheme" : str ,
291288 "method" : str ,
292- "root_path" : str ,
293289 "path" : str ,
294- "raw_path" : bytes ,
295290 "query_string" : bytes ,
296291 "headers" : list [tuple [bytes , bytes ]],
297- "state" : dict [str , Any ],
292+ # Optional fields per ASGI spec
293+ "scheme" : NotRequired [str ],
294+ "raw_path" : NotRequired [bytes ],
295+ "root_path" : NotRequired [str ],
296+ "client" : NotRequired [tuple [str , int ]],
297+ "server" : NotRequired [tuple [str , int ]],
298+ "state" : NotRequired [dict [str , Any ]],
298299 },
299300 )
300301 _TransactionContext = TypedDict (
You can’t perform that action at this time.
0 commit comments