Module graia.broadcast.entities.namespace
Expand source code
from typing import List
from pydantic import BaseModel # pylint: disable=no-name-in-module
from .dispatcher import BaseDispatcher
class Namespace(BaseModel):
name: str
injected_dispatchers: List[BaseDispatcher] = []
priority: int = 0
default: bool = False
hide: bool = False
disabled: bool = False
class Config:
arbitrary_types_allowed = True
Classes
class Namespace (**data: Any)
-
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
Expand source code
class Namespace(BaseModel): name: str injected_dispatchers: List[BaseDispatcher] = [] priority: int = 0 default: bool = False hide: bool = False disabled: bool = False class Config: arbitrary_types_allowed = True
Ancestors
- pydantic.main.BaseModel
- pydantic.utils.Representation
Class variables
var Config
var default : bool
var disabled : bool
var hide : bool
var injected_dispatchers : List[BaseDispatcher]
var name : str
var priority : int