mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix Python lints
This commit is contained in:
parent
0578729468
commit
e1f9d0fc1b
3 changed files with 3 additions and 3 deletions
|
@ -16,6 +16,7 @@ ignored-classes=
|
|||
BackendError,
|
||||
SetDeckCollapsedRequest,
|
||||
ConfigKey,
|
||||
HelpPageLinkRequest
|
||||
|
||||
[REPORTS]
|
||||
output-format=colorized
|
||||
|
|
|
@ -19,7 +19,7 @@ from anki import (
|
|||
from anki._legacy import DeprecatedNamesMixin, deprecated
|
||||
|
||||
# protobuf we publicly export - listed first to avoid circular imports
|
||||
HelpPage = links_pb2.HelpPageLinkRequest
|
||||
HelpPage = links_pb2.HelpPageLinkRequest.HelpPage
|
||||
SearchNode = search_pb2.SearchNode
|
||||
Progress = collection_pb2.Progress
|
||||
EmptyCardsReport = card_rendering_pb2.EmptyCardsReport
|
||||
|
|
|
@ -6,7 +6,6 @@ import os
|
|||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
from enum import Enum
|
||||
from functools import wraps
|
||||
from typing import (
|
||||
TYPE_CHECKING,
|
||||
|
@ -69,7 +68,7 @@ def locale_dir() -> str:
|
|||
# shortcut to access Fluent translations; set as
|
||||
tr = tr_legacyglobal
|
||||
|
||||
HelpPageArgument = Union["HelpPage.HelpPage.V", str]
|
||||
HelpPageArgument = Union["HelpPage.V", str]
|
||||
|
||||
|
||||
def openHelp(section: HelpPageArgument) -> None:
|
||||
|
|
Loading…
Reference in a new issue