Skip to content

Commit

Permalink
fix(compat): use typing.Type in app.stubs
Browse files Browse the repository at this point in the history
Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
  • Loading branch information
BradenM committed Mar 27, 2023
1 parent 450c27d commit 00858c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions micropy/app/stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import tempfile
from enum import Enum
from pathlib import Path
from typing import Optional
from typing import Optional, Type

import micropy.exceptions as exc
import typer
Expand Down Expand Up @@ -55,7 +55,7 @@ class CreateBackend(str, Enum):
upydevice = ("upydevice", UPyDeviceBackend)
rshell = ("rshell", RShellPyDeviceBackend)

def __new__(cls, value: str, backend: type[MetaPyDeviceBackend]):
def __new__(cls, value: str, backend: Type[MetaPyDeviceBackend]):
obj = str.__new__(cls, value)
obj._value_ = value
obj.backend = backend
Expand Down

0 comments on commit 00858c2

Please sign in to comment.