Skip to content

Commit af887aa

Browse files
committed
undo: try removing extra quotes around types
1 parent 33bd243 commit af887aa

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

circuitpython_typing/__init__.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@
5252
bytearray,
5353
bytes,
5454
memoryview,
55-
rgbmatrix.RGBMatrix,
56-
ulab.numpy.ndarray,
55+
"rgbmatrix.RGBMatrix",
56+
"ulab.numpy.ndarray",
5757
]
5858
"""Classes that implement the readable buffer protocol."""
5959

6060
WriteableBuffer: TypeAlias = Union[
6161
array.array,
6262
bytearray,
6363
memoryview,
64-
rgbmatrix.RGBMatrix,
65-
ulab.numpy.ndarray,
64+
"rgbmatrix.RGBMatrix",
65+
"ulab.numpy.ndarray",
6666
]
6767
"""Classes that implement the writeable buffer protocol."""
6868

@@ -144,20 +144,20 @@ def ioctl(self, operation: int, arg: Optional[int] = None) -> Optional[int]:
144144
# These types may not be in adafruit-blinka, so use the string form instead of a resolved name.
145145

146146
AudioSample: TypeAlias = Union[
147-
audiocore.WaveFile,
148-
audiocore.RawSample,
149-
audiomixer.Mixer,
150-
audiomp3.MP3Decoder,
151-
synthio.MidiTrack,
147+
"audiocore.WaveFile",
148+
"audiocore.RawSample",
149+
"audiomixer.Mixer",
150+
"audiomp3.MP3Decoder",
151+
"synthio.MidiTrack",
152152
]
153153
"""Classes that implement the audiosample protocol.
154154
You can play these back with `audioio.AudioOut`, `audiobusio.I2SOut` or `audiopwmio.PWMAudioOut`.
155155
"""
156156

157-
FrameBuffer: TypeAlias = Union[rgbmatrix.RGBMatrix]
157+
FrameBuffer: TypeAlias = Union["rgbmatrix.RGBMatrix"]
158158
"""Classes that implement the framebuffer protocol."""
159159

160-
Alarm: TypeAlias = Union[alarm.pin.PinAlarm, alarm.time.TimeAlarm]
160+
Alarm: TypeAlias = Union["alarm.pin.PinAlarm", "alarm.time.TimeAlarm"]
161161
"""Classes that implement alarms for sleeping and asynchronous notification.
162162
You can use these alarms to wake up from light or deep sleep.
163163
"""

0 commit comments

Comments
 (0)