fix Python lints

This commit is contained in:
Damien Elmes 2021-07-23 20:17:20 +10:00
parent 0578729468
commit e1f9d0fc1b
3 changed files with 3 additions and 3 deletions

View file

@ -16,6 +16,7 @@ ignored-classes=
BackendError,
SetDeckCollapsedRequest,
ConfigKey,
HelpPageLinkRequest
[REPORTS]
output-format=colorized

View file

@ -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

View file

@ -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: