mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-07-25 15:37:45 +00:00
Rewrote the library
- Only HTTPClient, File and Object exists currently
This commit is contained in:
parent
7bd3d48eab
commit
b23d5b78eb
16 changed files with 1048 additions and 1534 deletions
1
github/types/__init__.py
Normal file
1
github/types/__init__.py
Normal file
|
@ -0,0 +1 @@
|
|||
from .security_and_analysis import *
|
23
github/types/security_and_analysis.py
Normal file
23
github/types/security_and_analysis.py
Normal 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]
|
Loading…
Add table
Add a link
Reference in a new issue