Skip to content

Commit

Permalink
Fix synthesis of some configurations (kuznia-rdzeni/coreblocks#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotro888 authored Nov 13, 2024
1 parent 9204195 commit 06b79aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions transactron/utils/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ def get_dependency(self, key: DependencyKey[Any, U]) -> U:

return val

def dependency_provided(self, key: DependencyKey) -> bool:
"""Checks if any dependency for a key is provided (ignores `empty_valid` parameter)"""
return key in self.dependencies


class DependencyContext:
stack: list[DependencyManager] = []
Expand Down

0 comments on commit 06b79aa

Please sign in to comment.