Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
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
# 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: