mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-01 12:20:21 +08:00
MAINT: Remove lazy imports of Latest.
They're no longer needed to break import cycles.
This commit is contained in:
@@ -7,6 +7,9 @@ from six import (
|
||||
with_metaclass,
|
||||
)
|
||||
|
||||
from zipline.pipeline.classifiers import Classifier, Latest as LatestClassifier
|
||||
from zipline.pipeline.factors import Factor, Latest as LatestFactor
|
||||
from zipline.pipeline.filters import Filter, Latest as LatestFilter
|
||||
from zipline.pipeline.term import (
|
||||
AssetExists,
|
||||
LoadableTerm,
|
||||
@@ -159,13 +162,6 @@ class BoundColumn(LoadableTerm):
|
||||
|
||||
@property
|
||||
def latest(self):
|
||||
from zipline.pipeline.factors import Factor, Latest as LatestFactor
|
||||
from zipline.pipeline.filters import Filter, Latest as LatestFilter
|
||||
from zipline.pipeline.classifiers import (
|
||||
Classifier,
|
||||
Latest as LatestClassifier,
|
||||
)
|
||||
|
||||
dtype = self.dtype
|
||||
if dtype in Filter.ALLOWED_DTYPES:
|
||||
Latest = LatestFilter
|
||||
|
||||
Reference in New Issue
Block a user