-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from life4/vaa
Vaa
- Loading branch information
Showing
6 changed files
with
131 additions
and
175 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 |
---|---|---|
|
@@ -7,3 +7,4 @@ htmlcov/ | |
README.rst | ||
docs/build/ | ||
/setup.py | ||
.dephell_report/ |
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 |
---|---|---|
@@ -1,19 +1,8 @@ | ||
|
||
|
||
class Scheme: | ||
def __init__(self, data, request=None): | ||
def __init__(self, data): | ||
self.data = data | ||
|
||
def is_valid(self) -> bool: | ||
raise NotImplementedError # pragma: no cover | ||
|
||
|
||
def is_scheme(obj) -> bool: | ||
if not hasattr(obj, 'mro'): | ||
return False | ||
if Scheme in obj.mro(): | ||
return True | ||
for parent in obj.mro(): | ||
if parent.__module__.startswith('djburger.'): | ||
return True | ||
return False |
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
Oops, something went wrong.