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 20
20
21
21
"""
22
22
23
- # imports
24
- try :
25
- from __future__ import annotations
26
- except ImportError :
27
- pass
28
-
29
23
import os
30
24
import re
31
25
32
26
try :
33
- from typing import Optional , TYPE_CHECKING
27
+ from typing import Optional
34
28
except ImportError :
35
- TYPE_CHECKING = False
29
+ pass
36
30
37
31
from adafruit_platformdetect .constants import boards , chips
38
32
39
- if TYPE_CHECKING :
40
- from . import Detector
41
33
42
34
__version__ = "0.0.0-auto.0"
43
35
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PlatformDetect.git"
46
38
class Board :
47
39
"""Attempt to detect specific boards."""
48
40
49
- def __init__ (self , detector : Detector ) -> None :
41
+ def __init__ (self , detector ) -> None :
50
42
self .detector = detector
51
43
self ._board_id = None
52
44
Original file line number Diff line number Diff line change 19
19
20
20
"""
21
21
22
- # imports
23
- try :
24
- from __future__ import annotations
25
- except ImportError :
26
- pass
22
+
27
23
import os
28
24
import sys
29
25
30
26
try :
31
- from typing import Optional , TYPE_CHECKING
27
+ from typing import Optional
32
28
except ImportError :
33
- TYPE_CHECKING = False
29
+ pass
34
30
35
31
from adafruit_platformdetect .constants import chips
36
32
37
- if TYPE_CHECKING :
38
- from . import Detector
39
33
40
34
__version__ = "0.0.0-auto.0"
41
35
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PlatformDetect.git"
44
38
class Chip :
45
39
"""Attempt detection of current chip / CPU."""
46
40
47
- def __init__ (self , detector : Detector ) -> None :
41
+ def __init__ (self , detector ) -> None :
48
42
self .detector = detector
49
43
self ._chip_id = None
50
44
You can’t perform that action at this time.
0 commit comments