-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
213 additions
and
181 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from kioss._pipe import APipe, SourcePipe as Pipe | ||
from kioss._util import LOGGER | ||
from kioss import _pipe, _visitor | ||
_pipe.ITERATOR_GENERATING_VISITOR = _visitor.IteratorGeneratingVisitor() | ||
_pipe.EXPLAINING_VISITOR_CLASS = _visitor.ExplainingVisitor | ||
from kioss import _pipe | ||
from kioss._visitors import _explain, _iterator_generation | ||
_pipe.ITERATOR_GENERATING_VISITOR = _iterator_generation.IteratorGeneratingVisitor() | ||
_pipe.EXPLAINING_VISITOR_CLASS = _explain.ExplainingVisitor |
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 was deleted.
Oops, something went wrong.
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,41 @@ | ||
from abc import ABC, abstractmethod | ||
from typing import Any | ||
|
||
from kioss import _pipe | ||
|
||
class AVisitor(ABC): | ||
@abstractmethod | ||
def visitSourcePipe(self, pipe: _pipe.SourcePipe) -> Any: | ||
raise NotImplementedError() | ||
|
||
@abstractmethod | ||
def visitMapPipe(self, pipe: _pipe.MapPipe) -> Any: | ||
raise NotImplementedError() | ||
|
||
@abstractmethod | ||
def visitFlattenPipe(self, pipe: _pipe.FlattenPipe) -> Any: | ||
raise NotImplementedError() | ||
|
||
@abstractmethod | ||
def visitChainPipe(self, pipe: _pipe.ChainPipe) -> Any: | ||
raise NotImplementedError() | ||
|
||
@abstractmethod | ||
def visitFilterPipe(self, pipe: _pipe.FilterPipe) -> Any: | ||
raise NotImplementedError() | ||
|
||
@abstractmethod | ||
def visitBatchPipe(self, pipe: _pipe.BatchPipe) -> Any: | ||
raise NotImplementedError() | ||
|
||
@abstractmethod | ||
def visitSlowPipe(self, pipe: _pipe.SlowPipe) -> Any: | ||
raise NotImplementedError() | ||
|
||
@abstractmethod | ||
def visitCatchPipe(self, pipe: _pipe.CatchPipe) -> Any: | ||
raise NotImplementedError() | ||
|
||
@abstractmethod | ||
def visitLogPipe(self, pipe: _pipe.LogPipe) -> Any: | ||
raise NotImplementedError() |
Oops, something went wrong.