Skip to content

Commit dab8622

Browse files
committed
Refactor more types and fix ruff check warnings
Lots of Dict -> dict; List -> list and some other cleanups here and there. one of the rules is apparently python style standards say it's illegal to name a variable 'l' (or i or o), so may as well fix it just so the warning goes away too.
1 parent 43343fb commit dab8622

File tree

8 files changed

+124
-133
lines changed

8 files changed

+124
-133
lines changed

ib_async/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@
135135
"FlexError",
136136
"FlexReport",
137137
"IB",
138+
"IBDefaults",
139+
"OrderStateNumeric",
138140
"IBC",
139141
"Watchdog",
140142
"AccountValue",

ib_async/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def send(self, *fields, makeEmpty=True):
296296
bool: lambda b: "1" if b else "0",
297297

298298
# Lists of tags become semicolon-appended KV pairs
299-
list: lambda l: "".join([f"{v.tag}={v.value};" for v in l]),
299+
list: lambda lst: "".join([f"{v.tag}={v.value};" for v in lst]),
300300
}
301301
# fmt: on
302302

ib_async/decoder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import dataclasses
44
import logging
5-
from datetime import datetime, timezone
5+
from datetime import datetime
66
from typing import Any, cast
77

88
from .contract import (

0 commit comments

Comments
 (0)