diff options
author | Matthias Baumgartner <dev@igsor.net> | 2023-01-12 16:57:58 +0100 |
---|---|---|
committer | Matthias Baumgartner <dev@igsor.net> | 2023-01-12 16:57:58 +0100 |
commit | 1b7ef16c3795bb7112683662b8c22a774e219269 (patch) | |
tree | b460e60adb8eb2f93070beb153be15fda6f9cca0 /bsfs/schema/schema.py | |
parent | e708016ae366e96051281f3a744af35a8c06d98b (diff) | |
download | bsfs-1b7ef16c3795bb7112683662b8c22a774e219269.tar.gz bsfs-1b7ef16c3795bb7112683662b8c22a774e219269.tar.bz2 bsfs-1b7ef16c3795bb7112683662b8c22a774e219269.zip |
schema to string
Diffstat (limited to 'bsfs/schema/schema.py')
-rw-r--r-- | bsfs/schema/schema.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bsfs/schema/schema.py b/bsfs/schema/schema.py index 52ad191..bc50d4e 100644 --- a/bsfs/schema/schema.py +++ b/bsfs/schema/schema.py @@ -72,6 +72,8 @@ class Schema(): literals.add(types.ROOT_NUMBER) predicates.add(types.ROOT_FEATURE) + # FIXME: ensure that types derive from the right root? + # include parents in predicates set # TODO: review type annotations and ignores for python >= 3.11 (parents is _Type but should be typing.Self) predicates |= {par for pred in predicates for par in pred.parents()} # type: ignore [misc] |