Skip to content

Commit

Permalink
py3.4/3.5 compatible type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxMercedes committed Jan 5, 2019
1 parent 03fa3f7 commit 763f3eb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions assigner/backends/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class BackendBase:
"""
Common abstract base backend for all assigner backends (gitlab or mock).
"""
repo: RepoBase = RepoBase
template_repo: TemplateRepoBase = TemplateRepoBase
student_repo: StudentRepoBase = StudentRepoBase
repo = RepoBase # type: RepoBase
template_repo = TemplateRepoBase # type: TemplateRepoBase
student_repo = StudentRepoBase # type: StudentRepoBase
access = None
6 changes: 3 additions & 3 deletions assigner/backends/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ class GitlabBackend(BackendBase):
"""
Common abstract base backend for all assigner backends (gitlab or mock).
"""
repo: RepoBase = GitlabRepo
template_repo: TemplateRepoBase = GitlabTemplateRepo
student_repo: StudentRepoBase = GitlabStudentRepo
repo = GitlabRepo # type: RepoBase
template_repo = GitlabTemplateRepo # type: TemplateRepoBase
student_repo = GitlabStudentRepo # type: StudentRepoBase
access = Access
6 changes: 3 additions & 3 deletions assigner/backends/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,6 @@ class MockBackend(BackendBase):
"""
Common abstract base backend for all assigner backends (gitlab or mock).
"""
repo: RepoBase = MockRepo
template_repo: TemplateRepoBase = MockTemplateRepo
student_repo: StudentRepoBase = MockStudentRepo
repo = MockRepo # type: RepoBase
template_repo = MockTemplateRepo # type: TemplateRepoBase
student_repo = MockStudentRepo # type: StudentRepoBase

0 comments on commit 763f3eb

Please sign in to comment.