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
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: danger_python/danger.py +6-6Lines changed: 6 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -62,27 +62,27 @@ def __init__(self): |
62 | 62 | results: DangerResults = None |
63 | 63 |
|
64 | 64 | @property |
65 | | - def git(self) -> GitJSONDSL: |
| 65 | + def git(self) -> Optional[GitJSONDSL]: |
66 | 66 | return Danger.dsl.git |
67 | 67 |
|
68 | 68 | @property |
69 | | - def github(self) -> GitHubDSL: |
| 69 | + def github(self) -> Optional[GitHubDSL]: |
70 | 70 | return Danger.dsl.github |
71 | 71 |
|
72 | 72 | @property |
73 | | - def bitbucket_cloud(self) -> BitBucketCloudJSONDSL: |
| 73 | + def bitbucket_cloud(self) -> Optional[BitBucketCloudJSONDSL]: |
74 | 74 | return Danger.dsl.bitbucket_cloud |
75 | 75 |
|
76 | 76 | @property |
77 | | - def bitbucket_server(self) -> BitBucketServerJSONDSL: |
| 77 | + def bitbucket_server(self) -> Optional[BitBucketServerJSONDSL]: |
78 | 78 | return Danger.dsl.bitbucket_server |
79 | 79 |
|
80 | 80 | @property |
81 | | - def gitlab(self) -> GitLabDSL: |
| 81 | + def gitlab(self) -> Optional[GitLabDSL]: |
82 | 82 | return Danger.dsl.gitlab |
83 | 83 |
|
84 | 84 | @property |
85 | | - def settings(self) -> DangerDSLJSONTypeSettings: |
| 85 | + def settings(self) -> Optional[DangerDSLJSONTypeSettings]: |
86 | 86 | return Danger.dsl.settings |
87 | 87 |
|
88 | 88 |
|
|