mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
InputGitTreeElement.sha was previously updated to accept None to allow files to be deleted, but the type hint was not updated. Fixes #1707
16 lines
371 B
Python
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]: ...
|