mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-25 04:57:54 +00:00
Add flake8-bandit linting (#156)
The linter has been used in the past, so most assertions for these were already there but needed to be updated to use `noqa: S` instead of `nosec: B` annotations.
This commit is contained in:
@@ -128,7 +128,7 @@ class PickleCoder(Coder):
|
||||
|
||||
@classmethod
|
||||
def decode(cls, value: bytes) -> Any:
|
||||
return pickle.loads(value) # nosec:B403,B301
|
||||
return pickle.loads(value) # noqa: S301
|
||||
|
||||
@classmethod
|
||||
def decode_as_type(cls, value: bytes, *, type_: Optional[_T]) -> Any:
|
||||
|
||||
Reference in New Issue
Block a user