Update typing 15 (#48079)
This commit is contained in:
parent
dcca29ef68
commit
54d1e9985f
35 changed files with 190 additions and 166 deletions
|
@ -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[:]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue