Skip to content

Commit

Permalink
Merge pull request #53 from BrianPugh/autoregistry
Browse files Browse the repository at this point in the history
Have Device inherit from autoregistry.Registry for easier cli usage
  • Loading branch information
BrianPugh authored Nov 27, 2022
2 parents 84a095e + a5c3cb2 commit d9fe5fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion belay/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from pathlib import Path
from typing import Callable, Dict, Generator, List, Optional, Set, TextIO, Tuple, Union

from autoregistry import Registry
from pathspec import PathSpec
from serial import SerialException

Expand Down Expand Up @@ -404,7 +405,7 @@ class MethodMetadata:
kwargs: dict


class Device:
class Device(Registry):
"""Belay interface into a micropython device.
Attributes
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ typer = {extras = ["all"], version = "^0.6"}
pathspec = "*"
tomli = "^2.0.1"
httpx = "^0.23.0"
autoregistry = "^0.8.2"

[tool.poetry.group.docs.dependencies]
sphinx = "~4.5.0"
Expand Down

0 comments on commit d9fe5fb

Please sign in to comment.