File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 77import urllib .parse
88from pathlib import Path
99from types import TracebackType
10- from typing import Any , cast
10+ from typing import Any , Self , cast
1111
1212import backoff
1313from aiohttp import (
@@ -218,7 +218,7 @@ def __init__(
218218 ssl_context = self ._ssl ,
219219 )
220220
221- async def __aenter__ (self ) -> OverkizClient :
221+ async def __aenter__ (self ) -> Self :
222222 """Enter async context manager and return the client instance."""
223223 return self
224224
Original file line number Diff line number Diff line change @@ -1273,8 +1273,8 @@ class ValuePrototype:
12731273 def __init__ (
12741274 self ,
12751275 type : str ,
1276- min_value : int | float | None = None ,
1277- max_value : int | float | None = None ,
1276+ min_value : float | None = None ,
1277+ max_value : float | None = None ,
12781278 enum_values : list [str ] | None = None ,
12791279 description : str | None = None ,
12801280 ** _ : Any ,
Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ select = [
7373 " C4" ,
7474 # pep8-naming
7575 " N" ,
76+ # flake8-pyi
77+ " PYI" ,
7678]
7779ignore = [" E501" ] # Line too long
7880
You can’t perform that action at this time.
0 commit comments