Skip to content

Commit

Permalink
avoid name collision with validator
Browse files Browse the repository at this point in the history
  • Loading branch information
montezdesousa committed Oct 12, 2023
1 parent d5240df commit 8a30a44
Show file tree
Hide file tree
Showing 10 changed files with 64 additions and 64 deletions.
4 changes: 2 additions & 2 deletions openbb_platform/openbb/package/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.decorators import validate
from openbb_core.app.static.decorators import validate as _validate
from openbb_core.app.static.filters import filter_inputs
from openbb_provider.abstract.data import Data
from typing_extensions import Annotated
Expand All @@ -20,7 +20,7 @@ class ROUTER_crypto(Container):
def __repr__(self) -> str:
return self.__doc__ or ""

@validate
@_validate
def load(
self,
symbol: Annotated[
Expand Down
14 changes: 7 additions & 7 deletions openbb_platform/openbb/package/economy.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.decorators import validate
from openbb_core.app.static.decorators import validate as _validate
from openbb_core.app.static.filters import filter_inputs
from openbb_provider.abstract.data import Data
from typing_extensions import Annotated
Expand All @@ -25,7 +25,7 @@ class ROUTER_economy(Container):
def __repr__(self) -> str:
return self.__doc__ or ""

@validate
@_validate
def available_indices(
self, provider: Optional[Literal["fmp"]] = None, **kwargs
) -> OBBject[List[Data]]:
Expand Down Expand Up @@ -77,7 +77,7 @@ def available_indices(
**inputs,
)

@validate
@_validate
def const(
self,
index: Annotated[
Expand Down Expand Up @@ -148,7 +148,7 @@ def const(
**inputs,
)

@validate
@_validate
def cpi(
self,
countries: Annotated[
Expand Down Expand Up @@ -298,7 +298,7 @@ def cpi(
**inputs,
)

@validate
@_validate
def fred_index(
self,
symbol: Annotated[
Expand Down Expand Up @@ -384,7 +384,7 @@ def fred_index(
**inputs,
)

@validate
@_validate
def index(
self,
symbol: Annotated[
Expand Down Expand Up @@ -496,7 +496,7 @@ def index(
**inputs,
)

@validate
@_validate
def risk(
self, provider: Optional[Literal["fmp"]] = None, **kwargs
) -> OBBject[List[Data]]:
Expand Down
20 changes: 10 additions & 10 deletions openbb_platform/openbb/package/fixedincome.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.decorators import validate
from openbb_core.app.static.decorators import validate as _validate
from openbb_core.app.static.filters import filter_inputs
from openbb_provider.abstract.data import Data
from typing_extensions import Annotated
Expand All @@ -28,7 +28,7 @@ class ROUTER_fixedincome(Container):
def __repr__(self) -> str:
return self.__doc__ or ""

@validate
@_validate
def ameribor(
self,
start_date: Annotated[
Expand Down Expand Up @@ -101,7 +101,7 @@ def ameribor(
**inputs,
)

@validate
@_validate
def estr(
self,
start_date: Annotated[
Expand Down Expand Up @@ -175,7 +175,7 @@ def estr(
**inputs,
)

@validate
@_validate
def fed(
self,
start_date: Annotated[
Expand Down Expand Up @@ -249,7 +249,7 @@ def fed(
**inputs,
)

@validate
@_validate
def iorb(
self,
start_date: Annotated[
Expand Down Expand Up @@ -321,7 +321,7 @@ def iorb(
**inputs,
)

@validate
@_validate
def projections(
self, provider: Optional[Literal["fred"]] = None, **kwargs
) -> OBBject[List[Data]]:
Expand Down Expand Up @@ -386,7 +386,7 @@ def projections(
**inputs,
)

@validate
@_validate
def sofr(
self,
start_date: Annotated[
Expand Down Expand Up @@ -456,7 +456,7 @@ def sofr(
**inputs,
)

@validate
@_validate
def sonia(
self,
start_date: Annotated[
Expand Down Expand Up @@ -529,7 +529,7 @@ def sonia(
**inputs,
)

@validate
@_validate
def treasury(
self,
start_date: Annotated[
Expand Down Expand Up @@ -619,7 +619,7 @@ def treasury(
**inputs,
)

@validate
@_validate
def ycrv(
self,
date: Annotated[
Expand Down
6 changes: 3 additions & 3 deletions openbb_platform/openbb/package/forex.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.decorators import validate
from openbb_core.app.static.decorators import validate as _validate
from openbb_core.app.static.filters import filter_inputs
from openbb_provider.abstract.data import Data
from typing_extensions import Annotated
Expand All @@ -21,7 +21,7 @@ class ROUTER_forex(Container):
def __repr__(self) -> str:
return self.__doc__ or ""

@validate
@_validate
def load(
self,
symbol: Annotated[
Expand Down Expand Up @@ -133,7 +133,7 @@ def load(
**inputs,
)

@validate
@_validate
def pairs(
self, provider: Optional[Literal["fmp", "intrinio", "polygon"]] = None, **kwargs
) -> OBBject[List[Data]]:
Expand Down
4 changes: 2 additions & 2 deletions openbb_platform/openbb/package/news.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.decorators import validate
from openbb_core.app.static.decorators import validate as _validate
from openbb_core.app.static.filters import filter_inputs
from openbb_provider.abstract.data import Data
from typing_extensions import Annotated
Expand All @@ -19,7 +19,7 @@ class ROUTER_news(Container):
def __repr__(self) -> str:
return self.__doc__ or ""

@validate
@_validate
def globalnews(
self,
limit: Annotated[
Expand Down
10 changes: 5 additions & 5 deletions openbb_platform/openbb/package/stocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.decorators import validate
from openbb_core.app.static.decorators import validate as _validate
from openbb_core.app.static.filters import filter_inputs
from openbb_provider.abstract.data import Data
from typing_extensions import Annotated
Expand Down Expand Up @@ -39,7 +39,7 @@ def fa(self): # route = "/stocks/fa"

return stocks_fa.ROUTER_stocks_fa(command_runner=self._command_runner)

@validate
@_validate
def load(
self,
symbol: Annotated[
Expand Down Expand Up @@ -169,7 +169,7 @@ def load(
**inputs,
)

@validate
@_validate
def multiples(
self,
symbol: Annotated[
Expand Down Expand Up @@ -349,7 +349,7 @@ def multiples(
**inputs,
)

@validate
@_validate
def news(
self,
symbols: Annotated[
Expand Down Expand Up @@ -484,7 +484,7 @@ def options(self): # route = "/stocks/options"

return stocks_options.ROUTER_stocks_options(command_runner=self._command_runner)

@validate
@_validate
def quote(
self,
symbol: Annotated[
Expand Down
4 changes: 2 additions & 2 deletions openbb_platform/openbb/package/stocks_ca.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.decorators import validate
from openbb_core.app.static.decorators import validate as _validate
from openbb_core.app.static.filters import filter_inputs
from openbb_provider.abstract.data import Data
from typing_extensions import Annotated
Expand All @@ -19,7 +19,7 @@ class ROUTER_stocks_ca(Container):
def __repr__(self) -> str:
return self.__doc__ or ""

@validate
@_validate
def peers(
self,
symbol: Annotated[
Expand Down
Loading

0 comments on commit 8a30a44

Please sign in to comment.