Files
PyGithub/github/InputGitTreeElement.pyi
T
Steve Kowalik 08b72b48af Correct type hint for InputGitTreeElement.sha
InputGitTreeElement.sha was previously updated to accept None to allow
files to be deleted, but the type hint was not updated.

Fixes #1707
2020-10-02 15:13:13 +10:00

16 lines
371 B
Python

from typing import Dict, Union
from github.GithubObject import _NotSetType
class InputGitTreeElement:
def __init__(
self,
path: str,
mode: str,
type: str,
content: Union[str, _NotSetType] = ...,
sha: Union[str, _NotSetType, None] = ...,
) -> None: ...
@property
def _identity(self) -> Dict[str, str]: ...