Skip to content

Commit bbd635d

Browse files
committed
updated pyproject.toml adding ..NVDA/source path for pyright
1 parent 10d6682 commit bbd635d

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

addon/globalPlugins/MathCAT/MathCAT.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
import gui
2424

2525
from . import libmathcat_py as libmathcat
26-
from typing import List, Dict
26+
from typing import Type
27+
from collections.abc import Generator, Callable
2728
from keyboardHandler import KeyboardInputGesture # navigation key strokes
2829
from logHandler import log # logging
2930
from os import path # set rule dir path
@@ -33,7 +34,6 @@
3334
SynthDriver,
3435
)
3536
from ctypes import windll # register clipboard formats
36-
from typing import Optional
3737
from speech import getCurrentLanguage
3838
from speech.types import SpeechSequence
3939

@@ -48,6 +48,9 @@
4848
CharacterModeCommand,
4949
PhonemeCommand,
5050
IndexCommand,
51+
ProsodyCommand,
52+
SpeechCommand,
53+
SynthCommand,
5154
)
5255

5356
from textUtils import WCHAR_ENCODING
@@ -268,7 +271,7 @@ def getBrailleRegions(
268271
def getScript(
269272
self,
270273
gesture: KeyboardInputGesture,
271-
) -> Callable[inputCore.inputGesture, None] | None:
274+
) -> Callable[KeyboardInputGesture, None] | None:
272275
# Pass most keys to MathCAT. Pretty ugly.
273276
if (
274277
isinstance(gesture, KeyboardInputGesture)
@@ -356,7 +359,7 @@ def script_navigate(self, gesture: KeyboardInputGesture) -> None:
356359
# Translators: Name of the section in "Input gestures" dialog.
357360
category=_("Clipboard"),
358361
gesture="kb:control+c",
359-
) # type: ignore
362+
)
360363
def script_rawdataToClip(self, gesture: KeyboardInputGesture) -> None:
361364
try:
362365
copyAs: str = "mathml" # value used even if "CopyAs" pref is invalid

addon/globalPlugins/MathCAT/MathCATgui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def __init__(self, parent):
297297

298298
bSizerRelativeSpeed.Add(self._staticTextRelativeSpeed, 0, wx.ALL, 5)
299299

300-
self._sliderRelativeSpeed: Slider = wx.Slider(
300+
self._sliderRelativeSpeed: wx.Slider = wx.Slider(
301301
self._panelSpeech,
302302
wx.ID_ANY,
303303
100,

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ exclude = [
9595
# Tell pyright where to load python code from
9696
extraPaths = [
9797
"./addon",
98+
"../NVDA/source",
9899
]
99100

100101
# General config

0 commit comments

Comments
 (0)