From 4723228dcac0c9327aabed38c1cdc45b8c832d20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C4=99grzyn?= Date: Mon, 25 Nov 2024 20:58:37 +0100 Subject: [PATCH] Rebase initial transactron changes (#17) Co-authored-by: Marek Materzok --- .gitignore | 37 +++++++++++++++++++++++++++++++ transactron/utils/dependencies.py | 4 ---- 2 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2c5aaed --- /dev/null +++ b/.gitignore @@ -0,0 +1,37 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ +.python-version + +# Verilog files +*.v + +# Verilog generation debug files +*.v.json + +# Waveform dumps +*.vcd +*.gtkw + +# Tests outputs +test/__traces__ +test/__profiles__/*.json +pytestdebug.log +.hypothesis + +# Documentation build +build/ +docs/*.rst + +# Distribution / packaging +*.egg-info/ diff --git a/transactron/utils/dependencies.py b/transactron/utils/dependencies.py index 73efd57..7f8ddcb 100644 --- a/transactron/utils/dependencies.py +++ b/transactron/utils/dependencies.py @@ -151,10 +151,6 @@ def get_optional_dependency(self, key: DependencyKey[Any, U]) -> Optional[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] = []