Skip to content

Commit

Permalink
version 0.0.31
Browse files Browse the repository at this point in the history
  • Loading branch information
prismofeverything committed Apr 25, 2024
1 parent 9702ff7 commit 5f94552
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
20 changes: 2 additions & 18 deletions bigraph_schema/type_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,6 @@ def validate_schema(self, schema, enforce_connections=False):

return report

# # We will need this when building states to check to see if we are
# # trying to instantiate an abstract type, but we can still register
# # register abstract types so it is not invalid
# if len(schema_keys) > 0 and len(branches) == 0:
# undeclared = set(type_schema_keys) - schema_keys
# if len(undeclared) > 0:
# for key in undeclared:
# if not key in optional_schema_keys:
# report[key] = f'missing required key: {key} for declaring atomic type'


# TODO: if its an edge, ensure ports match wires
def validate_state(self, original_schema, state):
Expand Down Expand Up @@ -533,14 +523,7 @@ def validate(self, schema, state):


def apply_update(self, schema, state, update):
if isinstance(update, list):
for subupdate in update:
state = self.apply_update(
schema,
state,
subupdate)

elif isinstance(update, dict) and '_react' in update:
if isinstance(update, dict) and '_react' in update:
state = self.react(
schema,
state,
Expand Down Expand Up @@ -1640,6 +1623,7 @@ def apply_list(schema, current, update, core):

if core.check(element_type, update):
result = current + [update]
return result

elif isinstance(update, list):
result = current + update
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages


VERSION = '0.0.31'
VERSION = '0.0.32'


with open("README.md", "r") as readme:
Expand Down

0 comments on commit 5f94552

Please sign in to comment.