-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: decrease file nesting (#414)
refactor: decrease file nesting Fixes #350 phase 1 fix: imports style: linting misc.
- Loading branch information
Showing
55 changed files
with
230 additions
and
479 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
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 @@ | ||
|
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
...t/prompt_converter/prompts/test_ankiqa.py → ...nation/ankiconnect/test_anki_prompt_qa.py
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
10 changes: 3 additions & 7 deletions
10
...pt_destination/base_prompt_destination.py → ...nemonic_medium/destination/destination.py
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,25 +1,21 @@ | ||
from collections.abc import Sequence | ||
from typing import Protocol | ||
|
||
from ..prompts.base_prompt import DestinationPrompt | ||
from ..source.prompts.prompt import DestinationPrompt | ||
from .destination_commands import PromptDestinationCommand | ||
|
||
|
||
class PromptDestination(Protocol): | ||
def get_all_prompts(self) -> Sequence[DestinationPrompt]: | ||
... | ||
|
||
def update( | ||
self, commands: Sequence[PromptDestinationCommand] | ||
) -> None: | ||
def update(self, commands: Sequence[PromptDestinationCommand]) -> None: | ||
... | ||
|
||
|
||
class FakePromptDestination(PromptDestination): | ||
def get_all_prompts(self) -> Sequence[DestinationPrompt]: | ||
... | ||
|
||
def update( | ||
self, commands: Sequence[PromptDestinationCommand] | ||
) -> None: | ||
def update(self, commands: Sequence[PromptDestinationCommand]) -> None: | ||
... |
Oops, something went wrong.