From 1512913d7cdcd3875233d60ddd3ab6c0505244e5 Mon Sep 17 00:00:00 2001 From: Nicholas Felt Date: Thu, 2 May 2024 10:22:34 -0700 Subject: [PATCH 1/2] fix: Update imports so that dataclasses is only being imported once in the dm_config_parser.py module --- src/tm_devices/components/dm_config_parser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tm_devices/components/dm_config_parser.py b/src/tm_devices/components/dm_config_parser.py index d214e8c1..b73a8b0b 100644 --- a/src/tm_devices/components/dm_config_parser.py +++ b/src/tm_devices/components/dm_config_parser.py @@ -7,7 +7,6 @@ import os import pathlib -from dataclasses import dataclass from types import MappingProxyType from typing import ( Any, @@ -43,7 +42,7 @@ @runtime_checkable -@dataclass +@dataclasses.dataclass class _DataclassProtocol(Protocol): """A Protocol class to allow for type hinting things that accept generic dataclasses.""" From e13b63a37f61d000796c31db3579bf231fd48309 Mon Sep 17 00:00:00 2001 From: Nicholas Felt Date: Thu, 2 May 2024 16:45:53 -0700 Subject: [PATCH 2/2] fix: Update docs to enable building on readthedocs --- .readthedocs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.readthedocs.yml b/.readthedocs.yml index 55017b1b..2e3693c8 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -4,6 +4,7 @@ build: os: ubuntu-22.04 tools: python: '3.11' # This needs to stay in sync with pyproject.toml and any CI scripts + nodejs: '20' # This needs to stay in sync with any CI scripts python: install: - requirements: docs/requirements.txt