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
2 changes: 1 addition & 1 deletion .github/workflows/on_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Python # Set Python version
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.12'
# Install pip and pytest
- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
python-version: '3.12'

- name: Install deps
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
python-version: 3.12
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion src/deep/api/tracepoint/eventsnapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def __repr__(self) -> str:
return self.__str__()

def __eq__(self, o) -> bool:
if type(o) != VariableId:
if not isinstance(o, VariableId):
return False

if id(o) == id(self):
Expand Down
4 changes: 3 additions & 1 deletion test/test_deep/processor/test_variable_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class MockVariable(Variable):

def __eq__(self, o: object) -> bool:

if type(o) != Variable:
if not isinstance(o, Variable):
return False

if id(o) == id(self):
Expand All @@ -40,12 +40,14 @@ def __eq__(self, o: object) -> bool:
class MockNode(Node):

def __eq__(self, o: object) -> bool:
# noinspection PyUnresolvedReferences
return o.value == self.value


class MockNodeValue(NodeValue):

def __eq__(self, o: object) -> bool:
# noinspection PyUnresolvedReferences
return o.name == self.name and o.value == self.value


Expand Down