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 (
@@ -216,7 +216,7 @@ def __init__(
216216 ssl_context = self ._ssl ,
217217 )
218218
219- async def __aenter__ (self ) -> OverkizClient :
219+ async def __aenter__ (self ) -> Self :
220220 """Enter async context manager and return the client instance."""
221221 return self
222222
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 @@ -116,6 +116,8 @@ select = [
116116 " PIE" ,
117117 # eradicate
118118 " ERA" ,
119+ # flake8-pyi
120+ " PYI" ,
119121]
120122ignore = [
121123 " E501" , # Line too long
You can’t perform that action at this time.
0 commit comments