Allow arbitrary types
This commit is contained in:
parent
ef53a01bb7
commit
819a25e362
1 changed files with 3 additions and 0 deletions
3
nwcp.py
3
nwcp.py
|
|
@ -5,6 +5,7 @@ import json
|
||||||
import random
|
import random
|
||||||
import time
|
import time
|
||||||
from typing import Any, Awaitable, Callable, Dict, List, Optional, Tuple, Union
|
from typing import Any, Awaitable, Callable, Dict, List, Optional, Tuple, Union
|
||||||
|
from pydantic import BaseModel
|
||||||
|
|
||||||
import secp256k1
|
import secp256k1
|
||||||
import websockets.client as websockets
|
import websockets.client as websockets
|
||||||
|
|
@ -15,6 +16,8 @@ from lnbits.helpers import encrypt_internal_message
|
||||||
from lnbits.settings import settings
|
from lnbits.settings import settings
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
|
class Config:
|
||||||
|
arbitrary_types_allowed = True
|
||||||
|
|
||||||
class MainSubscription:
|
class MainSubscription:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue