Skip to content
Snippets Groups Projects
Commit bbee3451 authored by Woazboat's avatar Woazboat
Browse files

Add Union type annotation to goose.py

parent 4ec0a6de
No related branches found
No related tags found
1 merge request!205Allow configuration of wifi credentials + hostname via settings.json
......@@ -17,7 +17,7 @@ if TYPE_CHECKING:
class ABCBase(metaclass=ABCMeta):
pass
from typing import List, Optional, Tuple, Dict, Any, Callable, Iterator, Generator
from typing import List, Optional, Tuple, Dict, Any, Callable, Iterator, Generator, Union
from enum import Enum
else:
# We're in CPython or Micropython.
......@@ -40,6 +40,7 @@ else:
Callable,
Iterator,
Generator,
Union,
)
from enum import Enum
except ImportError:
......@@ -52,6 +53,7 @@ else:
Callable = None
Iterator = None
Generator = None
Union = None
class Enum:
pass
......@@ -70,4 +72,5 @@ __all__ = [
"Callable",
"Iterator",
"Generator",
"Union",
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment