Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions packages/overture-schema-system/changelog.d/737.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Export `Feature` from the `overture.schema.system` package root, so `from overture.schema.system import Feature` resolves the way `from overture.schema.common import OvertureFeature` already does.
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,12 @@
string,
)
from .create_model import create_model
from .feature import Feature

__all__ = [
"create_model",
"doc",
"Feature",
"feature",
"field_constraint",
"geometric",
Expand Down
7 changes: 7 additions & 0 deletions packages/overture-schema-system/tests/test_feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -2129,3 +2129,10 @@ def test_maybe_refactor_schema(
assert expect_properties_object_schema == _properties_object_schema
else:
assert properties_object_schema == _properties_object_schema


def test_feature_is_exported_from_package_root() -> None:
import overture.schema.system as system

assert system.Feature is Feature
assert "Feature" in system.__all__
Loading