File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ clean: ## Removing cached python compiled files
1010 find . -name \* ~ | xargs rm -fv
1111 find . -name __pycache__ | xargs rm -rfv
1212 find . -name .ruff_cache | xargs rm -rfv
13+ find . -name .mypy_cache | xargs rm -rfv
1314
1415install :clean # # Install dependencies
1516 pip install -r requirements.txt
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ def compute_api_route_function(
8787 api_controller_instance .add_controller_route_function (cls_route_function )
8888
8989
90- class ControllerBase ( ABC ) :
90+ class ControllerBase :
9191 """
9292 Abstract Controller Base implementation all Controller class should implement
9393
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ def ordering_queryset(
8282 ) -> Union [QuerySet , List ]:
8383 ordering_ = self .get_ordering (items , ordering_input .ordering )
8484 if ordering_ :
85- if isinstance (items , QuerySet ): # type:ignore
85+ if isinstance (items , QuerySet ):
8686 return items .order_by (* ordering_ )
8787 elif isinstance (items , list ) and items :
8888
@@ -124,7 +124,7 @@ def term_valid(term: str) -> bool:
124124 def get_valid_fields (self , items : Union [QuerySet , List ]) -> List [str ]:
125125 valid_fields : List [str ] = []
126126 if self .ordering_fields == "__all__" :
127- if isinstance (items , QuerySet ): # type:ignore
127+ if isinstance (items , QuerySet ):
128128 valid_fields = self .get_all_valid_fields_from_queryset (items )
129129 elif isinstance (items , list ):
130130 valid_fields = self .get_all_valid_fields_from_list (items )
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ def searching_queryset(
100100 search_terms = self .get_search_terms (searching_input .search )
101101
102102 if self .search_fields and search_terms :
103- if isinstance (items , QuerySet ): # type:ignore
103+ if isinstance (items , QuerySet ):
104104 conditions_queryset = self .construct_conditions_for_queryset (
105105 search_terms
106106 )
You can’t perform that action at this time.
0 commit comments