Update project configuration and dependencies
- Added `.vscode` to `.gitignore` to exclude Visual Studio Code settings. - Updated `pyproject.toml` to include `ruff` for linting and configured its settings. - Modified `uv.lock` to include `ruff` in both optional and development dependencies. - Refactored type hints in several files to use `str | None` for optional parameters. - Cleaned up unused imports and whitespace in various modules for improved code clarity.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Callable, Type
|
||||
from collections.abc import Callable
|
||||
|
||||
from .base import BaseDevice
|
||||
|
||||
@@ -7,7 +7,7 @@ device_registry = {}
|
||||
|
||||
def register_parser(
|
||||
name: list[str] | str,
|
||||
) -> Callable[[Type[BaseDevice]], Type[BaseDevice]]:
|
||||
) -> Callable[[type[BaseDevice]], type[BaseDevice]]:
|
||||
def wrapper(cls):
|
||||
name_list = []
|
||||
if isinstance(name, str):
|
||||
|
||||
Reference in New Issue
Block a user