-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
from typing import Optional, Type, TypeVar | ||
from typing import Any, Optional, Protocol, Type, TypeVar | ||
|
||
from kubernetes.client import Configuration | ||
|
||
_T = TypeVar("_T") | ||
|
||
class Response(Protocol): | ||
data: str | ||
|
||
class ApiClient: | ||
def __init__(self, configuration: Optional[Configuration] = ...) -> None: ... | ||
def __deserialize(self, response: str, response_type: Type[_T]) -> _T: ... | ||
def sanitize_for_serialization(self, obj: Any) -> dict[Any, Any]: ... | ||
def deserialize(self, response: Response, response_type: Type[_T]) -> _T: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
from typing import Optional, Type, TypeVar | ||
from typing import Any, Optional, Protocol, Type, TypeVar | ||
|
||
from kubernetes.client import Configuration | ||
|
||
_T = TypeVar("_T") | ||
|
||
class Response(Protocol): | ||
data: str | ||
|
||
class ApiClient: | ||
def __init__(self, configuration: Optional[Configuration] = ...) -> None: ... | ||
def __deserialize(self, response: str, response_type: Type[_T]) -> _T: ... | ||
def sanitize_for_serialization(self, obj: Any) -> dict[Any, Any]: ... | ||
def deserialize(self, response: Response, response_type: Type[_T]) -> _T: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "kubernetes-stubs" | ||
version = "18.20.0post1" | ||
version = "18.20.0post2" | ||
description = "Type stubs for the Kubernetes Python API client" | ||
authors = ["Nikhil Benesch <[email protected]>"] | ||
license = "Apache-2.0" | ||
|