Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sketch pydantic type-checking on runtime #50

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/oemof/tabular/facades.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
SPDX-License-Identifier: BSD-3-Clause
"""
from collections import deque
from dataclasses import dataclass, field
import dataclasses
from dataclasses import dataclass, field
from pydantic.dataclasses import dataclass
import warnings

from oemof.network.energy_system import EnergySystem
Expand All @@ -34,6 +35,9 @@
# Switch off SuspiciousUsageWarning
warnings.filterwarnings("ignore", category=SuspiciousUsageWarning)

class MyConfig:
arbitrary_types_allowed = True


def kwargs_to_parent(cls):
r"""
Expand Down