From 819a25e3626096cf062f5a1759daa1431f3516b3 Mon Sep 17 00:00:00 2001 From: Arc Date: Tue, 19 Nov 2024 22:35:35 +0000 Subject: [PATCH] Allow arbitrary types --- nwcp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nwcp.py b/nwcp.py index 66c1dc8..5f462e9 100644 --- a/nwcp.py +++ b/nwcp.py @@ -5,6 +5,7 @@ import json import random import time from typing import Any, Awaitable, Callable, Dict, List, Optional, Tuple, Union +from pydantic import BaseModel import secp256k1 import websockets.client as websockets @@ -15,6 +16,8 @@ from lnbits.helpers import encrypt_internal_message from lnbits.settings import settings from loguru import logger +class Config: + arbitrary_types_allowed = True class MainSubscription: def __init__(self):