mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-30 22:11:55 +00:00
Ignore mypy errors for now
This commit is contained in:
@@ -74,7 +74,7 @@ def sec_fillings(other_args: List[str], ticker: str):
|
||||
l_financials_info.extend(a_financials[5:-1])
|
||||
l_financials_info.append(financials_info.a["href"])
|
||||
# Append data values to financials
|
||||
df_financials.loc[len(df_financials.index)] = l_financials_info
|
||||
df_financials.loc[len(df_financials.index)] = l_financials_info # type: ignore
|
||||
|
||||
if "Filing Date" in a_financials:
|
||||
l_financials_header = [a_financials[2]]
|
||||
@@ -86,7 +86,7 @@ def sec_fillings(other_args: List[str], ticker: str):
|
||||
b_ready_to_process_info = True
|
||||
|
||||
# Set Filing Date as index
|
||||
df_financials = df_financials.set_index("Filing Date")
|
||||
df_financials = df_financials.set_index("Filing Date") # type: ignore
|
||||
|
||||
print(df_financials.head(n=ns_parser.n_num).to_string())
|
||||
print("")
|
||||
|
||||
@@ -67,7 +67,7 @@ def short_interest(other_args: List[str], ticker: str, start: str):
|
||||
else:
|
||||
df_short_interest = quandl.get(f"FINRA/FNSQ_{ticker}")
|
||||
|
||||
df_short_interest = df_short_interest[start:]
|
||||
df_short_interest = df_short_interest[start:] # type: ignore
|
||||
df_short_interest.columns = [
|
||||
"".join(
|
||||
" " + char if char.isupper() else char.strip() for char in idx
|
||||
@@ -95,7 +95,7 @@ def short_interest(other_args: List[str], ticker: str, start: str):
|
||||
|
||||
if start:
|
||||
ax.set_title(
|
||||
f"{('NASDAQ', 'NYSE')[ns_parser.b_nyse]} Short Interest on {ticker} from {start.date()}"
|
||||
f"{('NASDAQ', 'NYSE')[ns_parser.b_nyse]} Short Interest on {ticker} from {start.date()}" # type: ignore
|
||||
)
|
||||
else:
|
||||
ax.set_title(
|
||||
|
||||
@@ -99,7 +99,7 @@ def due_diligence(other_args: List[str], ticker: str):
|
||||
submissions = psaw_api.search_submissions(
|
||||
after=int(n_ts_after), subreddit=l_sub_reddits, q=ticker, filter=["id"]
|
||||
)
|
||||
d_submission = {}
|
||||
d_submission = {} # type: ignore
|
||||
n_flair_posts_found = 0
|
||||
while True:
|
||||
submission = next(submissions, None)
|
||||
|
||||
Reference in New Issue
Block a user