-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This now does not break `make doctest` Also cleaned up comments, added todo's and license
- Loading branch information
Hal Wine
committed
Aug 27, 2020
1 parent
8815245
commit 466084a
Showing
15 changed files
with
312 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# IDE files | ||
.vscode/ | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Classes required by Frost | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
from typing import Optional | ||
|
||
|
||
class GitHubClient: | ||
|
||
_debug_calls: bool = False | ||
_offline: bool = False | ||
|
||
@classmethod | ||
def debug_calls(cls) -> bool: | ||
return cls._debug_calls | ||
|
||
@classmethod | ||
def is_offline(cls) -> bool: | ||
return cls._offline | ||
|
||
@classmethod | ||
def update(cls, debug_calls: Optional[bool] = None, offline: Optional[bool] = None): | ||
# allow updates | ||
if debug_calls: | ||
cls._debug_calls = debug_calls | ||
if offline: | ||
cls._offline = offline | ||
|
||
def __init__( | ||
self, debug_calls: Optional[bool] = None, offline: Optional[bool] = None | ||
): | ||
self.update(debug_calls, offline) |
Oops, something went wrong.