Skip to content

Commit

Permalink
🎨 pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
veit committed Feb 11, 2024
1 parent de373df commit 6226c77
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
10 changes: 5 additions & 5 deletions docs/data-processing/apis/grpc/accounts_pb2.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
(_message.Message,),
{
"DESCRIPTOR": _ACCOUNT,
"__module__": "accounts_pb2"
"__module__": "accounts_pb2",
# @@protoc_insertion_point(class_scope:Account)
},
)
Expand All @@ -313,7 +313,7 @@
(_message.Message,),
{
"DESCRIPTOR": _CREATEACCOUNTREQUEST,
"__module__": "accounts_pb2"
"__module__": "accounts_pb2",
# @@protoc_insertion_point(class_scope:CreateAccountRequest)
},
)
Expand All @@ -324,7 +324,7 @@
(_message.Message,),
{
"DESCRIPTOR": _CREATEACCOUNTRESULT,
"__module__": "accounts_pb2"
"__module__": "accounts_pb2",
# @@protoc_insertion_point(class_scope:CreateAccountResult)
},
)
Expand All @@ -335,7 +335,7 @@
(_message.Message,),
{
"DESCRIPTOR": _GETACCOUNTSREQUEST,
"__module__": "accounts_pb2"
"__module__": "accounts_pb2",
# @@protoc_insertion_point(class_scope:GetAccountsRequest)
},
)
Expand All @@ -346,7 +346,7 @@
(_message.Message,),
{
"DESCRIPTOR": _GETACCOUNTSRESULT,
"__module__": "accounts_pb2"
"__module__": "accounts_pb2",
# @@protoc_insertion_point(class_scope:GetAccountsResult)
},
)
Expand Down
1 change: 1 addition & 0 deletions docs/productive/qa/requests/help.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module containing bug report helper(s)."""

from __future__ import print_function

import json
Expand Down
8 changes: 5 additions & 3 deletions docs/productive/qa/requests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,11 @@ def _encode_files(files, data):

new_fields.append(
(
field.decode("utf-8")
if isinstance(field, bytes)
else field,
(
field.decode("utf-8")
if isinstance(field, bytes)
else field
),
v.encode("utf-8") if isinstance(v, str) else v,
)
)
Expand Down
6 changes: 3 additions & 3 deletions docs/productive/qa/requests/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
target = chardet.__name__
for mod in list(sys.modules):
if mod == target or mod.startswith(target + "."):
sys.modules[
"requests.packages." + target.replace(target, "chardet")
] = sys.modules[mod]
sys.modules["requests.packages." + target.replace(target, "chardet")] = (
sys.modules[mod]
)
# Kinda cool, though, right?

0 comments on commit 6226c77

Please sign in to comment.