Skip to content

Commit beae1f7

Browse files
committed
Moved some stuff around in the base definition class
1 parent d01c9ad commit beae1f7

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

polygon/rest/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393

9494
from .definitions import Definition
9595

96+
9697
AnyDefinition = typing.TypeVar("AnyDefinition", bound=Definition)
9798

9899
# noinspection SpellCheckingInspection

polygon/rest/models/definitions.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33

44
from polygon.rest import models
55

6-
StockSymbol = str
7-
ConditionTypeMap = Dict[str, str]
8-
SymbolTypeMap = Dict[str, str]
9-
TickerSymbol = str
10-
116

127
class Definition:
138
_swagger_name_to_python: Dict[str, str]
@@ -116,7 +111,7 @@ class LastQuote(Definition):
116111
"bidsize": "bidsize",
117112
"bidexchange": "bidexchange",
118113
"timestamp": "timestamp",
119-
114+
120115
}
121116

122117
_attribute_is_primitive = {
@@ -3640,3 +3635,9 @@ class CryptoSnapshotGainersLosersApiResponse(Definition):
36403635
def __init__(self):
36413636
self.status: str
36423637
self.tickers: List[CryptoSnapshotTicker]
3638+
3639+
3640+
StockSymbol = str
3641+
ConditionTypeMap = Dict[str, str]
3642+
SymbolTypeMap = Dict[str, str]
3643+
TickerSymbol = str

0 commit comments

Comments
 (0)