Update typing 15 (#48079)

This commit is contained in:
Marc Mueller 2021-03-18 15:13:22 +01:00 committed by GitHub
parent dcca29ef68
commit 54d1e9985f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 190 additions and 166 deletions

View file

@ -1,6 +1,7 @@
"""Tests for the seventeentrack sensor."""
from __future__ import annotations
import datetime
from typing import Union
from unittest.mock import MagicMock, patch
from py17track.package import Package
@ -100,7 +101,7 @@ class ProfileMock:
return self.__class__.login_result
async def packages(
self, package_state: Union[int, str] = "", show_archived: bool = False
self, package_state: int | str = "", show_archived: bool = False
) -> list:
"""Packages mock."""
return self.__class__.package_list[:]