binance: set `Pair.pegInstructionsAllowed = False`

Lol, a cheeky unforeseen bug due to TOML's lack of a null type and
thinking i can render an `Optional` field on a `msgspec.Struct`
(defaulted to `None`) the `binance.symcache.toml` cache file..

I didn't catch this when i first updated to the 3.1 API in f7caa75228
because i never did a cache-files flush.. lesson learned and we **really
need tests for this**!!
how_to_show_ur_pp
Tyler Goodlet 2025-10-02 20:08:56 -04:00
parent 513ced6a70
commit 8a5bb688af
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ class Pair(Struct, frozen=True, kw_only=True):
# https://developers.binance.com/docs/binance-spot-api-docs#2025-08-26 # https://developers.binance.com/docs/binance-spot-api-docs#2025-08-26
# will become non-optional 2025-08-28? # will become non-optional 2025-08-28?
# https://developers.binance.com/docs/binance-spot-api-docs#future-changes # https://developers.binance.com/docs/binance-spot-api-docs#future-changes
pegInstructionsAllowed: bool|None = None pegInstructionsAllowed: bool = False
filters: dict[ filters: dict[
str, str,