Skip to content

Commit 1ed62d3

Browse files
authored
Merge pull request #3008 from opentensor/fix/roman/add-correct-parrent-init
`LoggingMachine` initialization updated to explicitly call both parent constructors
2 parents e51ad47 + 639cb66 commit 1ed62d3

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/flake8-and-mypy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242
python -m venv venv
4343
source venv/bin/activate
4444
python -m pip install --upgrade pip
45-
python -m pip install uv
45+
# uv==0.8.6 is the last version that supports python 3.9
46+
python -m pip install uv==0.8.6
4647
python -m uv sync --extra dev --active
4748
4849
- name: Flake8

.github/workflows/unit-and-integration-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ jobs:
3939
python -m venv venv
4040
source venv/bin/activate
4141
python -m pip install --upgrade pip
42-
python -m pip install uv
42+
# uv==0.8.6 is the last version that supports python 3.9
43+
python -m pip install uv==0.8.6
4344
python -m uv sync --extra dev --active
4445
4546
- name: Unit tests

bittensor/utils/btlogging/loggingmachine.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ class LoggingMachine(StateMachine, Logger):
137137

138138
def __init__(self, config: "Config", name: str = BITTENSOR_LOGGER_NAME):
139139
# basics
140-
super(LoggingMachine, self).__init__()
140+
StateMachine.__init__(self)
141+
stdlogging.Logger.__init__(self, name)
141142
self._queue = mp.Queue(-1)
142143
self._primary_loggers = {name}
143144
self._config = self._extract_logging_config(config)

0 commit comments

Comments
 (0)