mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 13:32:08 +00:00
remove access to protected attribute
This commit is contained in:
@@ -30,7 +30,7 @@ app.include_router(router=router_system, prefix="/api/v1")
|
||||
app.include_router(router=router_commands, prefix="/api/v1")
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"], # react renders on this port
|
||||
allow_origins=["*"],
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
@@ -147,11 +147,10 @@ class ParametersBuilder:
|
||||
extra = Extra.allow
|
||||
|
||||
sig = inspect.signature(func)
|
||||
# pylint: disable=W0212
|
||||
fields = {
|
||||
n: (
|
||||
p.annotation,
|
||||
... if p.default is inspect._empty else p.default,
|
||||
... if p.default is Parameter.empty else p.default,
|
||||
)
|
||||
for n, p in sig.parameters.items()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user