Upgrade pylint to 2.6.0 (#39363)

This commit is contained in:
Ville Skyttä
2020-08-29 08:59:24 +03:00
committed by GitHub
parent 67de1d3466
commit 1bf2c4d976
52 changed files with 77 additions and 86 deletions

View File

@@ -158,7 +158,7 @@ class CoreState(enum.Enum):
final_write = "FINAL_WRITE"
stopped = "STOPPED"
def __str__(self) -> str:
def __str__(self) -> str: # pylint: disable=invalid-str-returned
"""Return the event."""
return self.value # type: ignore
@@ -523,7 +523,7 @@ class EventOrigin(enum.Enum):
local = "LOCAL"
remote = "REMOTE"
def __str__(self) -> str:
def __str__(self) -> str: # pylint: disable=invalid-str-returned
"""Return the event."""
return self.value # type: ignore
@@ -1483,6 +1483,7 @@ class Config:
unit_system: Optional[str] = None,
location_name: Optional[str] = None,
time_zone: Optional[str] = None,
# pylint: disable=dangerous-default-value # _UNDEFs not modified
external_url: Optional[Union[str, dict]] = _UNDEF,
internal_url: Optional[Union[str, dict]] = _UNDEF,
) -> None: