Skip to content

Commit 1070402

Browse files
committed
ruff-format
1 parent bbd635d commit 1070402

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

addon/globalPlugins/MathCAT/MathCAT.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def _copyToClipAsMathML(
427427
self,
428428
text: str,
429429
isMathML: bool,
430-
notify: bool | None = False
430+
notify: bool | None = False,
431431
) -> bool:
432432
"""Copies the given text to the windows clipboard.
433433
@returns: True if it succeeds, False otherwise.
@@ -496,7 +496,7 @@ def __init__(self):
496496

497497
def getSpeechForMathMl(
498498
self,
499-
mathml: str
499+
mathml: str,
500500
) -> list[str | SpeechCommand]:
501501
global _synthesizerRate
502502
synth: SynthDriver = getSynth()

addon/globalPlugins/MathCAT/MathCATPreferences.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,9 @@ def getRulesFiles(
271271
processSubDirs: Callable[[str, str], list[str]] | None,
272272
) -> list[str]:
273273
language: str = os.path.basename(pathToDir)
274-
ruleFiles: list[str] = [os.path.basename(file) for file in glob.glob(os.path.join(pathToDir, "*_Rules.yaml"))]
274+
ruleFiles: list[str] = [
275+
os.path.basename(file) for file in glob.glob(os.path.join(pathToDir, "*_Rules.yaml"))
276+
]
275277
for dir in os.listdir(pathToDir):
276278
if os.path.isdir(os.path.join(pathToDir, dir)):
277279
if processSubDirs:
@@ -349,7 +351,9 @@ def getSpeechStyleFromDirectory(dir: str, lang: str) -> list[str]:
349351
mainLang: str = lang.split("\\")[0] # does the right thing even if there is no regional directory
350352
allStyleFiles: list[str] = []
351353
if lang.find("\\") >= 0:
352-
allStyleFiles: list[str] = [os.path.basename(name) for name in glob.glob(dir + lang + "\\*_Rules.yaml")]
354+
allStyleFiles: list[str] = [
355+
os.path.basename(name) for name in glob.glob(dir + lang + "\\*_Rules.yaml")
356+
]
353357
allStyleFiles.extend(
354358
[os.path.basename(name) for name in glob.glob(dir + mainLang + "\\*_Rules.yaml")],
355359
)
@@ -615,7 +619,7 @@ def validateInt(
615619
key1: str,
616620
key2: str,
617621
validValues: list[int],
618-
defaultValue: int
622+
defaultValue: int,
619623
) -> None:
620624
global userPreferences
621625
try:

0 commit comments

Comments
 (0)