Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
kalaspuff committed Nov 23, 2023
1 parent e3d2399 commit 2f8c207
Showing 1 changed file with 29 additions and 16 deletions.
45 changes: 29 additions & 16 deletions stockholm/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,24 +153,37 @@ class MoneyDictWithValueAndCurrencyCode(NumberDictWithValue):


NumberDict = Union[NumberDictWithAmount, NumberDictWithUnits, NumberDictWithNanos, NumberDictWithValue]
NumberDictWithEmptyCurrency = (
Union[NumberDictWithAmountAndEmptyCurrency, NumberDictWithUnitsAndEmptyCurrency, NumberDictWithNanosAndEmptyCurrency, NumberDictWithValueAndEmptyCurrency]
)
MoneyDictWithOptionalCurrency = (
Union[MoneyDictWithAmountAndOptionalCurrency, MoneyDictWithUnitsAndOptionalCurrency, MoneyDictWithNanosAndOptionalCurrency, MoneyDictWithValueAndOptionalCurrency]
)
MoneyDictWithCurrency = (
Union[MoneyDictWithAmountAndCurrency, MoneyDictWithUnitsAndCurrency, MoneyDictWithNanosAndCurrency, MoneyDictWithValueAndCurrency, MoneyDictWithAmountAndCurrencyCode, MoneyDictWithUnitsAndCurrencyCode, MoneyDictWithNanosAndCurrencyCode, MoneyDictWithValueAndCurrencyCode]
)

ConvertibleToNumberT = (
Union[Number, NumericType[Any], MoneyModel[Any], NumberDict, NumberDictWithEmptyCurrency, int, float, Decimal, str]
)
NumberDictWithEmptyCurrency = Union[
NumberDictWithAmountAndEmptyCurrency,
NumberDictWithUnitsAndEmptyCurrency,
NumberDictWithNanosAndEmptyCurrency,
NumberDictWithValueAndEmptyCurrency,
]
MoneyDictWithOptionalCurrency = Union[
MoneyDictWithAmountAndOptionalCurrency,
MoneyDictWithUnitsAndOptionalCurrency,
MoneyDictWithNanosAndOptionalCurrency,
MoneyDictWithValueAndOptionalCurrency,
]
MoneyDictWithCurrency = Union[
MoneyDictWithAmountAndCurrency,
MoneyDictWithUnitsAndCurrency,
MoneyDictWithNanosAndCurrency,
MoneyDictWithValueAndCurrency,
MoneyDictWithAmountAndCurrencyCode,
MoneyDictWithUnitsAndCurrencyCode,
MoneyDictWithNanosAndCurrencyCode,
MoneyDictWithValueAndCurrencyCode,
]

ConvertibleToNumberT = Union[
Number, NumericType[Any], MoneyModel[Any], NumberDict, NumberDictWithEmptyCurrency, int, float, Decimal, str
]
ConvertibleToNumber = ConvertibleTypeDescriptor[Number, Number, ConvertibleToNumberT]

ConvertibleToMoneyWithOptionalCurrencyT = (
Union[Money, MoneyModel[Any], NumberDict, MoneyDictWithOptionalCurrency, int, float, Decimal, str]
)
ConvertibleToMoneyWithOptionalCurrencyT = Union[
Money, MoneyModel[Any], NumberDict, MoneyDictWithOptionalCurrency, int, float, Decimal, str
]
ConvertibleToMoneyWithOptionalCurrency = ConvertibleTypeDescriptor[
Money, Money, ConvertibleToMoneyWithOptionalCurrencyT
]
Expand Down

0 comments on commit 2f8c207

Please sign in to comment.