Skip to content

Commit b1fcce0

Browse files
committed
mypy lint
1 parent 541c35f commit b1fcce0

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

ninja/params/models.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def get_request_data(
202202
return results
203203

204204

205-
class Param(FieldInfo):
205+
class Param(FieldInfo): # type: ignore[misc]
206206
def __init__(
207207
self,
208208
default: Any,
@@ -265,35 +265,35 @@ def _param_source(cls) -> str:
265265
return cls.__name__.lower()
266266

267267

268-
class Path(Param):
268+
class Path(Param): # type: ignore[misc]
269269
_model = PathModel
270270

271271

272-
class Query(Param):
272+
class Query(Param): # type: ignore[misc]
273273
_model = QueryModel
274274

275275

276-
class Header(Param):
276+
class Header(Param): # type: ignore[misc]
277277
_model = HeaderModel
278278

279279

280-
class Cookie(Param):
280+
class Cookie(Param): # type: ignore[misc]
281281
_model = CookieModel
282282

283283

284-
class Body(Param):
284+
class Body(Param): # type: ignore[misc]
285285
_model = BodyModel
286286

287287

288-
class Form(Param):
288+
class Form(Param): # type: ignore[misc]
289289
_model = FormModel
290290

291291

292-
class File(Param):
292+
class File(Param): # type: ignore[misc]
293293
_model = FileModel
294294

295295

296-
class _MultiPartBody(Param):
296+
class _MultiPartBody(Param): # type: ignore[misc]
297297
_model = _MultiPartBodyModel
298298

299299
@classmethod

ninja/testing/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def __init__(self, http_response: Union[HttpResponse, StreamingHttpResponse]):
206206
if self.streaming:
207207
self.content = b"".join(http_response.streaming_content) # type: ignore
208208
else:
209-
self.content = http_response.content # type: ignore[union-attr]
209+
self.content = http_response.content
210210
self._data = None
211211

212212
def json(self) -> Any:

0 commit comments

Comments
 (0)