Update pyupgrade to v2.37.1 (#74989)
parent
73a8ae35c2
commit
af2feb3d40
|
@ -1,6 +1,6 @@
|
|||
repos:
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v2.34.0
|
||||
rev: v2.37.1
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args: [--py39-plus]
|
||||
|
|
|
@ -12,5 +12,5 @@ mccabe==0.6.1
|
|||
pycodestyle==2.8.0
|
||||
pydocstyle==6.1.1
|
||||
pyflakes==2.4.0
|
||||
pyupgrade==2.34.0
|
||||
pyupgrade==2.37.1
|
||||
yamllint==1.27.1
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
"""Mocks for the august component."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Iterable
|
||||
import json
|
||||
import os
|
||||
import time
|
||||
from typing import Any, Iterable
|
||||
from typing import Any
|
||||
from unittest.mock import AsyncMock, MagicMock, PropertyMock, patch
|
||||
|
||||
from yalexs.activity import (
|
||||
|
|
|
@ -8,11 +8,11 @@ forward exercising the triggers.
|
|||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
from collections.abc import Callable, Generator
|
||||
import datetime
|
||||
import logging
|
||||
import secrets
|
||||
from typing import Any, Generator
|
||||
from typing import Any
|
||||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
"""Test configuration and mocks for the google integration."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Awaitable, Callable
|
||||
from collections.abc import Awaitable, Callable, Generator
|
||||
import datetime
|
||||
import http
|
||||
from typing import Any, Generator, TypeVar
|
||||
from typing import Any, TypeVar
|
||||
from unittest.mock import Mock, mock_open, patch
|
||||
|
||||
from aiohttp.client_exceptions import ClientError
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Awaitable, Callable
|
||||
from collections.abc import Awaitable, Callable, Generator
|
||||
import copy
|
||||
from dataclasses import dataclass, field
|
||||
import time
|
||||
from typing import Any, Generator, TypeVar
|
||||
from typing import Any, TypeVar
|
||||
|
||||
from google_nest_sdm.auth import AbstractAuth
|
||||
from google_nest_sdm.device import Device
|
||||
|
|
|
@ -12,10 +12,10 @@ so that it can inspect the output.
|
|||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
from collections.abc import Generator
|
||||
from http import HTTPStatus
|
||||
import logging
|
||||
import threading
|
||||
from typing import Generator
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
from aiohttp import web
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
# pylint: disable=protected-access
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Sequence
|
||||
from dataclasses import dataclass
|
||||
from datetime import timedelta
|
||||
from typing import Any, Callable, Sequence
|
||||
from typing import Any, Callable
|
||||
from unittest.mock import Mock
|
||||
|
||||
from pyunifiprotect import ProtectApiClient
|
||||
|
|
Loading…
Reference in New Issue