Ignore mypy errors for now

This commit is contained in:
Artem Veremey
2021-04-12 10:15:43 -07:00
parent 06f5e7aeb3
commit 8a1fcb329e
3 changed files with 5 additions and 5 deletions

View File

@@ -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("")

View File

@@ -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(

View File

@@ -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)