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, BackendError,
SetDeckCollapsedRequest, SetDeckCollapsedRequest,
ConfigKey, ConfigKey,
HelpPageLinkRequest
[REPORTS] [REPORTS]
output-format=colorized output-format=colorized

View file

@ -19,7 +19,7 @@ from anki import (
from anki._legacy import DeprecatedNamesMixin, deprecated from anki._legacy import DeprecatedNamesMixin, deprecated
# protobuf we publicly export - listed first to avoid circular imports # protobuf we publicly export - listed first to avoid circular imports
HelpPage = links_pb2.HelpPageLinkRequest HelpPage = links_pb2.HelpPageLinkRequest.HelpPage
SearchNode = search_pb2.SearchNode SearchNode = search_pb2.SearchNode
Progress = collection_pb2.Progress Progress = collection_pb2.Progress
EmptyCardsReport = card_rendering_pb2.EmptyCardsReport EmptyCardsReport = card_rendering_pb2.EmptyCardsReport

View file

@ -6,7 +6,6 @@ import os
import re import re
import subprocess import subprocess
import sys import sys
from enum import Enum
from functools import wraps from functools import wraps
from typing import ( from typing import (
TYPE_CHECKING, TYPE_CHECKING,
@ -69,7 +68,7 @@ def locale_dir() -> str:
# shortcut to access Fluent translations; set as # shortcut to access Fluent translations; set as
tr = tr_legacyglobal tr = tr_legacyglobal
HelpPageArgument = Union["HelpPage.HelpPage.V", str] HelpPageArgument = Union["HelpPage.V", str]
def openHelp(section: HelpPageArgument) -> None: def openHelp(section: HelpPageArgument) -> None: