mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2026-04-18 06:53:38 +00:00
first commit
This commit is contained in:
10
obsws_cli/protocols.py
Normal file
10
obsws_cli/protocols.py
Normal file
@@ -0,0 +1,10 @@
|
||||
"""module defining protocols for type hinting."""
|
||||
|
||||
from dataclasses import dataclass
|
||||
from typing import Protocol, runtime_checkable
|
||||
|
||||
|
||||
@runtime_checkable
|
||||
@dataclass
|
||||
class DataclassProtocol(Protocol):
|
||||
"""A protocol for dataclass-like structures."""
|
||||
Reference in New Issue
Block a user