Skip to content

Commit 8c4daff

Browse files
committed
RDBC-674 Reformat with black 23.0
1 parent 679698a commit 8c4daff

File tree

10 files changed

+2
-12
lines changed

10 files changed

+2
-12
lines changed

ravendb/documents/commands/batches.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ def create_request(self, node: ServerNode) -> requests.Request:
136136
files = {"main": None}
137137
for command in self.__commands:
138138
if command.command_type == CommandType.ATTACHMENT_PUT:
139-
140139
command: PutAttachmentCommandData
141140
files[command.name] = (
142141
command.name,

ravendb/documents/operations/attachments/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ def __init__(self, document_id: str, name: str, change_vector: Optional[str] = N
274274
self.__change_vector = change_vector
275275

276276
def create_request(self, server_node):
277-
278277
request = requests.Request(
279278
"DELETE",
280279
f"{server_node.url}/databases/{server_node.database}/attachments?id={Utils.quote_key(self.__document_id)}&name={Utils.quote_key(self.__name)}",

ravendb/documents/session/operations/lazy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,6 @@ def handle_response(self, response: "GetResponse") -> None:
682682

683683
try:
684684
if response.result is not None:
685-
686685
if self.__cluster_session.session.no_tracking:
687686
result = CaseInsensitiveDict()
688687
for key, value in CompareExchangeValueResultParser.get_values(

ravendb/documents/session/operations/load_operation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515

1616
class LoadOperation:
17-
1817
logger = logging.getLogger("load_operation")
1918

2019
def __init__(

ravendb/http/misc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def __init__(self, leader: str, node_tag: str, topology: ClusterTopology, etag:
2121

2222
@classmethod
2323
def from_json(cls, json_dict: dict) -> ClusterTopologyResponse:
24-
2524
return cls(
2625
json_dict["Leader"],
2726
json_dict["NodeTag"],

ravendb/tests/driver/raven_test_driver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
class RavenTestDriver:
13-
1413
debug = False
1514

1615
def __init__(self):

ravendb/tests/jvm_migrated_tests/suggestions_tests/test_suggestions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def test_using_linq_multiple_words(self):
8787
self.set_up(self.store)
8888

8989
with self.store.open_session() as s:
90-
9190
options = SuggestionOptions(accuracy=0.4, distance=StringDistanceTypes.LEVENSHTEIN)
9291

9392
suggestion_query_result = (

ravendb/tests/operations_tests/test_operations.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ def test_fail_patch_wrong_index_name(self):
113113
raise ErrorResponseException("Got empty or None response from the server")
114114

115115
def test_delete_by_index(self):
116-
117116
ind = IndexDefinition(name="Users")
118117
ind.maps = ["from doc in docs.Users select new {name=doc.name}"]
119118
self.store.maintenance.send(PutIndexesOperation(ind))

ravendb/tests/test_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ def __init__(self, patched):
139139

140140

141141
class TestBase(unittest.TestCase, RavenTestDriver):
142-
143142
__global_server: Union[None, DocumentStore] = None
144143
__global_server_process: Union[None, Popen] = None
145144

ravendb/tools/parsers.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def lexer(socket, buf_size=ijson.backend.BUFSIZE):
7676
def create_array(self, gen):
7777
arr = []
7878

79-
for (token, val) in gen:
79+
for token, val in gen:
8080
if token == "end_array":
8181
return arr
8282
arr.append(self.get_value_from_token(gen, token, val))
@@ -100,7 +100,7 @@ def get_value_from_token(self, gen, token, val):
100100
def create_object(self, gen):
101101
obj = {}
102102

103-
for (token, val) in gen:
103+
for token, val in gen:
104104
if token == "end_map":
105105
return obj
106106
if token == "map_key":
@@ -109,7 +109,6 @@ def create_object(self, gen):
109109
raise ParseError("End object expected, but the generator ended before we got it")
110110

111111
def next_object(self):
112-
113112
try:
114113
(_, text) = next(self.lexer)
115114
if IS_WEBSOCKET and text == ",":

0 commit comments

Comments
 (0)