1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-07-24 23:17:43 +00:00

Rewrote the library

- Only HTTPClient, File and Object exists currently
This commit is contained in:
RGBCube 2022-06-25 14:11:17 +03:00
parent 7bd3d48eab
commit b23d5b78eb
16 changed files with 1048 additions and 1534 deletions

1
github/types/__init__.py Normal file
View file

@ -0,0 +1 @@
from .security_and_analysis import *

View file

@ -0,0 +1,23 @@
from typing import Literal, TypedDict
from typing_extensions import NotRequired
__all__ = ("SecurtiyAndAnalysis",)
class AdvancedSecurity(TypedDict):
status: Literal["enabled", "disabled"]
class SecretScanning(TypedDict):
status: Literal["enabled", "disabled"]
class SecretScanningPushProtection(TypedDict):
status: Literal["enabled", "disabled"]
class SecurtiyAndAnalysis(TypedDict):
advanced_security: NotRequired[AdvancedSecurity]
secret_scanning: NotRequired[SecretScanning]
secret_scanning_push_protection: NotRequired[SecretScanningPushProtection]