Skip to content

Commit c3abf3e

Browse files
committed
Ruff format
1 parent 92fe1a2 commit c3abf3e

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

tinydb/create.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
with TinyDB("countries.json", indent=4) as countries:
77
countries_table = countries.table(name="countries")
88

9-
countries_table.insert(
10-
{"location": "Vatican City", "population": 501}
11-
)
9+
countries_table.insert({"location": "Vatican City", "population": 501})
1210

1311
countries_table.insert_multiple(
1412
[

tinydb/read.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
countries_tb = countries_db.table(name="countries")
77

88
query = Query()
9-
query_def = (query.population > 220_000_000) & (
10-
query.population < 250_000_000
11-
)
9+
query_def = (query.population > 220_000_000) & (query.population < 250_000_000)
1210

1311
pprint(countries_tb.search(query_def))
1412

tinydb/update.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,4 @@
2727
]
2828
)
2929

30-
countries_tb.update(
31-
{"source": "Official estimate"}, doc_ids=[7, 9]
32-
)
30+
countries_tb.update({"source": "Official estimate"}, doc_ids=[7, 9])

0 commit comments

Comments
 (0)