Improve __enter__ & constructor methods (#7114)

This commit is contained in:
Alex Waygood
2022-02-02 21:14:59 +00:00
committed by GitHub
parent 7ccbbdb30a
commit b4e97a1909
11 changed files with 39 additions and 21 deletions

View File

@@ -1,7 +1,8 @@
from _typeshed import Self
from typing import Any
class Settings:
def __new__(cls, *args, **kw) -> Settings: ...
def __new__(cls: type[Self], *args, **kw) -> Self: ...
def __init__(self, settings: Any | None = ...) -> None: ...
@classmethod
def get_key(cls, settings: Any | None = ...): ...