GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix type annotations for direct DSL access on Danger instance · nitheesh-me/python@aad1422

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • danger_python
    • danger.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎danger_python/danger.py‎

Copy file name to clipboardExpand all lines: danger_python/danger.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,27 +62,27 @@ def __init__(self):
6262
results: DangerResults = None
6363

6464
@property
65-
def git(self) -> GitJSONDSL:
65+
def git(self) -> Optional[GitJSONDSL]:
6666
return Danger.dsl.git
6767

6868
@property
69-
def github(self) -> GitHubDSL:
69+
def github(self) -> Optional[GitHubDSL]:
7070
return Danger.dsl.github
7171

7272
@property
73-
def bitbucket_cloud(self) -> BitBucketCloudJSONDSL:
73+
def bitbucket_cloud(self) -> Optional[BitBucketCloudJSONDSL]:
7474
return Danger.dsl.bitbucket_cloud
7575

7676
@property
77-
def bitbucket_server(self) -> BitBucketServerJSONDSL:
77+
def bitbucket_server(self) -> Optional[BitBucketServerJSONDSL]:
7878
return Danger.dsl.bitbucket_server
7979

8080
@property
81-
def gitlab(self) -> GitLabDSL:
81+
def gitlab(self) -> Optional[GitLabDSL]:
8282
return Danger.dsl.gitlab
8383

8484
@property
85-
def settings(self) -> DangerDSLJSONTypeSettings:
85+
def settings(self) -> Optional[DangerDSLJSONTypeSettings]:
8686
return Danger.dsl.settings
8787

8888

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.