File tree Expand file tree Collapse file tree 2 files changed +7
-21
lines changed Expand file tree Collapse file tree 2 files changed +7
-21
lines changed Original file line number Diff line number Diff line change 2020
2121"""
2222
23- # imports
24- try :
25- from __future__ import annotations
26- except ImportError :
27- pass
28-
2923import os
3024import re
3125
3226try :
33- from typing import Optional , TYPE_CHECKING
27+ from typing import Optional
3428except ImportError :
35- TYPE_CHECKING = False
29+ pass
3630
3731from adafruit_platformdetect .constants import boards , chips
3832
39- if TYPE_CHECKING :
40- from . import Detector
4133
4234__version__ = "0.0.0-auto.0"
4335__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PlatformDetect.git"
4638class Board :
4739 """Attempt to detect specific boards."""
4840
49- def __init__ (self , detector : Detector ) -> None :
41+ def __init__ (self , detector ) -> None :
5042 self .detector = detector
5143 self ._board_id = None
5244
Original file line number Diff line number Diff line change 1919
2020"""
2121
22- # imports
23- try :
24- from __future__ import annotations
25- except ImportError :
26- pass
22+
2723import os
2824import sys
2925
3026try :
31- from typing import Optional , TYPE_CHECKING
27+ from typing import Optional
3228except ImportError :
33- TYPE_CHECKING = False
29+ pass
3430
3531from adafruit_platformdetect .constants import chips
3632
37- if TYPE_CHECKING :
38- from . import Detector
3933
4034__version__ = "0.0.0-auto.0"
4135__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PlatformDetect.git"
4438class Chip :
4539 """Attempt detection of current chip / CPU."""
4640
47- def __init__ (self , detector : Detector ) -> None :
41+ def __init__ (self , detector ) -> None :
4842 self .detector = detector
4943 self ._chip_id = None
5044
You can’t perform that action at this time.
0 commit comments