mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 03:11:16 +08:00
Improve __enter__ & constructor methods (#7114)
This commit is contained in:
@@ -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 = ...): ...
|
||||
|
||||
Reference in New Issue
Block a user