@degenpump_crypto_pump_signals · Post #504681 · 13.05.2026 г., 20:08
#GRIFFAIN/USDT Take-Profit target 1 ✅ Profit: 22.5% 📈 Period: 54 min ⏰
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #397 · 12 ное.
Использование Pydantic сегодня стало нормой, и это правильно. Но иногда на ревью вижу, что используют его не всегда корректно. Например, метод BaseModel.model_dump() по умолчанию не преобразует стандартные типы, такие как datetime, UUID или Decimal, в простой сериализуемый для JSON вид. Тогда пишут кастмоный сериализатор для этих типов чтобы функция json.dump() не падала с ошибкой. import uuid from datetime import datetime from decimal import Decimal from uuid import UUID from pydantic import BaseModel class MyModel(BaseModel): id: UUID date: datetime value: Decimal obj = MyModel( id=uuid.uuid4(), date=datetime.now(), value='1.23' ) print(obj.model_dump()) # не подходит для json.dump # { # 'id': UUID('4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1'), # 'date': datetime.datetime(2025, 12, 12, 12, 12, 12, 111111), # 'value': Decimal('1.23') # } # добавляем свой кастомный сериализатор json.dumps(obj.model_dump(), cls=MySerializer) # { # 'id': '4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1', # 'date': '2025-12-12T12:12:12.111111', # 'value': '1.23' # } В данном случае класс MySerializer обрабатывает datetime, UUID и Decimal. Например так: class MySerializer(json.JSONEncoder): def default(self, o): if isinstance(o, Decimal): return str(o) elif isinstance(o, datetime): return o.isoformat() elif isinstance(o, UUID): return str(o) return super().default(o) Специально для тех, кто всё еще так делает - в этом нет необходимости! Pydantic может это сделать сам, просто нужно добавить параметр mode="json". json.dumps(obj.model_dump(mode="json")) # { # 'id': '4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1', # 'date': '2012-12-12T12:12:12.111111', # 'value': '1.23' # } #pydantic#libs
Пребарај: #griffain
@degenpump_crypto_pump_signals · Post #504681 · 13.05.2026 г., 20:08
#GRIFFAIN/USDT Take-Profit target 1 ✅ Profit: 22.5% 📈 Period: 54 min ⏰
Hashtags
@binancepumpsignais · Post #51603 · 25.03.2026 г., 16:45
| Coin: #GRIFFAIN/USDT - Long 20x | Entry Targets: 0.01093 Take-Profit Targets: 1) 0.01115 2) 0.01125 3) 0.01136 4) 0.01147 Binance Pumps®
Hashtags
@binancepumpsignais · Post #51576 · 23.03.2026 г., 17:07
| Coin: #GRIFFAIN/USDT - Long 20x | Entry Targets: 0.009649 Take-Profit Targets: 1) 0.009842 2) 0.009938 3) 0.01003 4) 0.01013 Binance Pumps®
Hashtags
@binancefuturesignal · Post #36451 · 30.04.2026 г., 12:59
🎯🎯Excellent 117% Profit on #GRIFFAIN/USDT for all Premium Members 🚀🚀It has crossed all the targets 👁🗨Contact @futurechief to enter the premium group & make daily gains
Hashtags
@binancefuturesignal · Post #36379 · 18.04.2026 г., 13:07
🎯🎯Excellent 43% Profit on #GRIFFAIN/USDT for all Premium Members 🚀🚀It has crossed all the targets 👁🗨Contact @futurechief to enter the premium group & make daily gains
Hashtags
@binancefuturesignal · Post #36215 · 30.03.2026 г., 19:59
🎯🎯Excellent 32% Profit on #GRIFFAIN/USDT for all Premium Members 🚀🚀It has crossed all the targets 👁🗨Contact @futurechief to enter the premium group & make daily gains
Hashtags
@binancefuturesignal · Post #36197 · 27.03.2026 г., 10:52
🎯🎯Excellent 135% Profit on #GRIFFAIN/USDT for all Premium Members 🚀🚀It has crossed all the targets 👁🗨Contact @futurechief to enter the premium group & make daily gains
Hashtags
@binancefuturesignal · Post #35473 · 14.01.2026 г., 12:40
🎯🎯Excellent 26% Profit on #GRIFFAIN/USDT for all Premium Members 🚀🚀It has crossed all the targets 👁🗨Contact @futurechief to enter the premium group & make daily gains
Hashtags
@binancefuturesignal · Post #35438 · 12.01.2026 г., 06:41
🚀🚀 Storming Profits in the Premium Group 🎯🎯#GRIFFAIN/USDT has covered all the targets to give a profit 43% for all Premium Members 👁🗨Contact @futurechief to enter the Premium Futures & SPOT Group for daily gains
Hashtags
@cryptosignalalert · Post #28513 · 25.04.2026 г., 14:33
🚀🚀#GRIFFAIN/USDT was shared in the premium group & it has resulted in good profit 👁🗨Contact @cripexperts to enter the premium group
Hashtags
@btctradingclub · Post #26189 · 27.10.2025 г., 20:45
🚀🚀 37% Profit on #GRIFFAIN/USDT as yet another great trade was posted in the premium group 👁🗨Contact @primemod to enter the premium group & make daily gains on Futures/Bybit/OKX/Kucoin & Bitget market
Hashtags
@fedrussianinsiders_real · Post #9412 · 17.10.2025 г., 05:55
Buy the dips #GRIFFAIN .
Hashtags