File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,7 @@ exclude_lines =
12
12
if __name__ == .__main__.:
13
13
class .*\bProtocol\):
14
14
@(abc\.)?abstractmethod
15
+ [run]
16
+ omit =
17
+ # omit this single file
18
+ ellar/core/files/storages/aws_s3.py
Original file line number Diff line number Diff line change @@ -68,8 +68,6 @@ def __init__(
68
68
69
69
self ._user_middleware = list (t .cast (list , self .config .MIDDLEWARE ))
70
70
71
- self ._static_app : t .Optional [ASGIApp ] = None
72
-
73
71
self .state = State ()
74
72
self .config .DEFAULT_LIFESPAN_HANDLER = (
75
73
lifespan or self .config .DEFAULT_LIFESPAN_HANDLER
@@ -118,15 +116,6 @@ def _config_logging(self) -> None:
118
116
logging .getLogger ("ellar" ).setLevel (log_level )
119
117
logging .getLogger ("ellar.request" ).setLevel (log_level )
120
118
121
- def _statics_wrapper (self ) -> t .Callable :
122
- async def _statics_func_wrapper (
123
- scope : TScope , receive : TReceive , send : TSend
124
- ) -> t .Any :
125
- assert self ._static_app , 'app static ASGIApp can not be "None"'
126
- return await self ._static_app (scope , receive , send )
127
-
128
- return _statics_func_wrapper
129
-
130
119
def _get_module_routes (self ) -> t .List [BaseRoute ]:
131
120
_routes : t .List [BaseRoute ] = []
132
121
You can’t perform that action at this time.
0 commit comments