-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
7,494 additions
and
5,194 deletions.
There are no files selected for viewing
Submodule ibek-defs
updated
from 98e748 to 508d36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,17 @@ | ||
""" | ||
A few global definitions | ||
""" | ||
from typing import TypeVar | ||
|
||
from pydantic import BaseModel, ConfigDict, Field | ||
from pydantic import BaseModel, ConfigDict | ||
|
||
#: A generic Type for use in type hints | ||
T = TypeVar("T") | ||
|
||
|
||
def desc(description: str): | ||
"""a description Annotation to add to our Entity derived Types""" | ||
return Field(description=description) | ||
# pydantic model configuration | ||
model_config = ConfigDict( | ||
# arbitrary_types_allowed=True, | ||
extra="forbid", | ||
) | ||
|
||
|
||
class BaseSettings(BaseModel): | ||
"""A Base class for setting Pydantic model configuration""" | ||
|
||
# Pydantic model configuration | ||
model_config = ConfigDict( | ||
# arbitrary_types_allowed=True, | ||
extra="forbid", | ||
) | ||
model_config = model_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.