]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Bump ruff from 0.0.275 to 0.0.285 (#2254)
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Fri, 25 Aug 2023 18:55:38 +0000 (12:55 -0600)
committerGitHub <noreply@github.com>
Fri, 25 Aug 2023 18:55:38 +0000 (12:55 -0600)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
requirements.txt
starlette/formparsers.py

index 2b44d2eeeccc5eb4ca8d4207ddbe36d92f41d720..21fdf5604292fd634c34dabe68b910e2f75773cf 100644 (file)
@@ -6,7 +6,7 @@ black==23.7.0
 coverage==7.2.7
 importlib-metadata==6.6.0
 mypy==1.4.1
-ruff==0.0.275
+ruff==0.0.285
 typing_extensions==4.7.0
 types-contextvars==2.4.7.2
 types-PyYAML==6.0.12.11
index 5ac2bcc1b3aaddd461ac4ac6d43e9f947ead2721..905260b9818f2f472d1d642ba792cfa2d9f3f7cd 100644 (file)
@@ -227,7 +227,7 @@ class MultiPartParser:
         # Parse the Content-Type header to get the multipart boundary.
         _, params = parse_options_header(self.headers["Content-Type"])
         charset = params.get(b"charset", "utf-8")
-        if type(charset) == bytes:
+        if isinstance(charset, bytes):
             charset = charset.decode("latin-1")
         self._charset = charset
         try: