Fix various typos (#7374)

* Fix typo: commnd -> command

* Fix typo: ommissions -> omissions

* Fix typo: survery -> survey

* Fix typo: obersvation -> observation

* Fix typo: obersvation -> observation

* Fix typos: Normaliztion -> Normalization, add missing space

* Fix typos: aicraft -> aircraft, exclud -> exclude

* Fix typo: informations -> information

* Fix typos: Miscellanous, excpet, accesories, similiar

* Fix typo: ommissions -> omissions

* Fix typo: aggreated -> aggregated

* Fix typo: foward_pe -> forward_pe

* Fix typo: contiunation -> continuation

* Fix typo: deferrred -> deferred

* Fix typo: daa -> date

* Fix typo: Activites -> Activities

* Fix typo: Activites -> Activities

* Fix typo: Recieved -> Received

* Fix typo: acquistion -> acquisition

* Fix typos: developement -> development

* Fix typo: obersvation -> observation

* Fix typo: Governement -> Government

* Fix typo: anaylsts -> analysts

* Fix typo: signapore -> singapore

* Fix typo: signapore -> singapore

* Fix typo: decalaration -> declaration

* Fix typo: Phramaceutical -> Pharmaceutical

* Revert changes to ec_codes.json

* Revert changes to ppi_codes.json

* Fix exchange_date alias to use daa

* fix linter error

Signed-off-by: luojiyin <luojiyin@hotmail.com>

---------

Signed-off-by: luojiyin <luojiyin@hotmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
This commit is contained in:
luo jiyin
2026-03-04 04:43:26 +08:00
committed by GitHub
parent a9edacd3aa
commit c12bee7571
24 changed files with 43 additions and 48 deletions

View File

@@ -8,7 +8,7 @@
},
"subcategory_code": {
"CHGASLI": "Net change in total assets and liabilities",
"TITLEOFI": "Other financial informations:",
"TITLEOFI": "Other financial information:",
"CONSUNIT": "Number of consumer units (in thousands)",
"TITLECU": "Consumer unit characteristics:",
"TITLEPD": "Percent distribution:",

View File

@@ -100,7 +100,7 @@ def generate_bps_series_ids(
financial_derivatives=f"BPS.{freq}.N.I9.W1.S1.S1.T.N.FA.F.F7.T.EUR._T.T.N.ALL",
other_investment=f"BPS.{freq}.N.I9.W1.S1.S1.T.N.FA.O.F._Z.EUR._T._X.N.ALL",
reserve_assets=f"BPS.{freq}.N.I9.W1.S121.S1.T.A.FA.R.F._Z.EUR.X1._X.N.ALL",
errors_and_ommissions=f"BPS.{freq}.N.I9.W1.S1.S1.T.N.EO._Z._Z._Z.EUR._T._X.N.ALL",
errors_and_omissions=f"BPS.{freq}.N.I9.W1.S1.S1.T.N.EO._Z._Z._Z.EUR._T._X.N.ALL",
)
return main_items

View File

@@ -27,7 +27,7 @@ HoldingTypes = Literal[
"frn",
"tips",
]
HOLDING_TYPE_CHOICES = [
HOLDING_TYPE_CHOICES: list[Any] = [
"all_agency",
"agency_debts",
"mbs",
@@ -112,7 +112,7 @@ class FederalReserveCentralBankHoldingsData(CentralBankHoldingsData):
default=None,
description="Description of the security. Only returned for Agency securities.",
)
is_aggreated: Literal["Y"] | None = Field(
is_aggregated: Literal["Y"] | None = Field(
default=None,
description="Whether the security is aggregated. Only returned for Agency securities.",
)

View File

@@ -29,7 +29,7 @@ class FinvizKeyMetricsData(KeyMetricsData):
pe_ratio: float | None = Field(
default=None, description="Price-to-earnings ratio (TTM)."
)
foward_pe: float | None = Field(
forward_pe: float | None = Field(
default=None, description="Forward price-to-earnings ratio (forward P/E)"
)
eps: float | None = Field(default=None, description="Earnings per share (EPS)")
@@ -164,7 +164,7 @@ class FinvizKeyMetricsFetcher(
if fundament.get("EPS (ttm)", "-") != "-"
else None
),
"foward_pe": (
"forward_pe": (
fundament.get("Forward P/E", None)
if fundament.get("Forward P/E", "-") != "-"
else None

View File

@@ -253,7 +253,7 @@ d_signals_desc = {
"tl_support": "once a falling trendline is broken",
"wedge_up": "upward trendline support and upward trendline resistance (reversal)",
"wedge_down": "downward trendline support and downward trendline resistance (reversal)",
"wedge": "upward trendline support, downward trendline resistance (contiunation)",
"wedge": "upward trendline support, downward trendline resistance (continuation)",
"triangle_ascending": "upward trendline support and horizontal trendline resistance",
"triangle_descending": "horizontal trendline support and downward trendline resistance",
"channel_up": "both support and resistance trendlines slope upward",

View File

@@ -183,11 +183,6 @@ class FMPBalanceSheetGrowthData(BalanceSheetGrowthData):
description="Growth rate of tax payables.",
json_schema_extra={"x-unit_measurement": "percent", "x-frontend_multiply": 100},
)
growth_deferred_tax_liabilities_non_current: float | None = Field(
default=None,
description="Growth rate of non-current deferred tax liabilities.",
json_schema_extra={"x-unit_measurement": "percent", "x-frontend_multiply": 100},
)
growth_deferred_revenue: float | None = Field(
default=None,
description="Growth rate of deferred revenue.",
@@ -213,7 +208,7 @@ class FMPBalanceSheetGrowthData(BalanceSheetGrowthData):
description="Growth rate of long-term debt.",
json_schema_extra={"x-unit_measurement": "percent", "x-frontend_multiply": 100},
)
growth_deferrred_tax_liabilities_non_current: float | None = Field(
growth_deferred_tax_liabilities_non_current: float | None = Field(
default=None,
description="Growth rate of non-current deferred tax liabilities.",
json_schema_extra={"x-unit_measurement": "percent", "x-frontend_multiply": 100},

View File

@@ -64,7 +64,7 @@ class FMPCashFlowStatementData(CashFlowStatementData):
"net_preferred_equity_issuance": "netPreferredStockIssuance",
"net_equity_issuance": "netStockIssuance",
"payment_of_dividends": "dividendsPaid",
"other_financing_activities": "otherFinancingActivites",
"other_financing_activities": "otherFinancingActivities",
"net_cash_from_financing_activities": "netCashProvidedByFinancingActivities",
"effect_of_exchange_rate_changes_on_cash": "effectOfForexChangesOnCash",
"net_change_in_cash_and_equivalents": "netChangeInCash",

View File

@@ -39,10 +39,10 @@ class FMPCashFlowStatementGrowthData(CashFlowStatementGrowthData):
"reported_currency": "reportedCurrency",
"growth_acquisitions": "growthAcquisitionsNet",
"growth_sale_and_maturity_of_investments": "growthSalesMaturitiesOfInvestments",
"growth_net_cash_from_operating_activities": "growthNetCashProvidedByOperatingActivites",
"growth_other_investing_activities": "growthOtherInvestingActivites",
"growth_net_cash_from_investing_activities": "growthNetCashUsedForInvestingActivites",
"growth_other_financing_activities": "growthOtherFinancingActivites",
"growth_net_cash_from_operating_activities": "growthNetCashProvidedByOperatingActivities",
"growth_other_investing_activities": "growthOtherInvestingActivities",
"growth_net_cash_from_investing_activities": "growthNetCashUsedForInvestingActivities",
"growth_other_financing_activities": "growthOtherFinancingActivities",
"growth_purchase_of_investment_securities": "growthPurchasesOfInvestments",
"growth_account_receivables": "growthAccountsReceivables",
"growth_account_payable": "growthAccountsPayables",

View File

@@ -138,7 +138,7 @@ class FMPGovernmentTradesFetcher(
"firstName",
"lastName",
}
keys_to_rename = {"dateRecieved": "date", "disclosureDate": "date"}
keys_to_rename = {"dateReceived": "date", "disclosureDate": "date"}
async def get_one(url):
"""Get data for one URL."""

View File

@@ -62,7 +62,7 @@ class FMPInsiderTradingData(InsiderTradingData):
"ownership_type": "directOrIndirect",
"security_type": "securityName",
"transaction_price": "price",
"acquisition_or_disposition": "acquistionOrDisposition",
"acquisition_or_disposition": "acquisitionOrDisposition",
"filing_url": "link",
"transactions_ratio": "acquiredDisposedRatio",
"company_cik": "cik",

View File

@@ -73,7 +73,7 @@ class FMPKeyMetricsData(KeyMetricsData):
"capex_to_depreciation": "capexToDepreciationTTM",
"capex_to_revenue": "capexToRevenueTTM",
"sales_general_and_administrative_to_revenue": "salesGeneralAndAdministrativeToRevenueTTM",
"research_and_developement_to_revenue": "researchAndDevelopementToRevenueTTM",
"research_and_development_to_revenue": "researchAndDevelopmentToRevenueTTM",
"stock_based_compensation_to_revenue": "stockBasedCompensationToRevenueTTM",
"intangibles_to_total_assets": "intangiblesToTotalAssetsTTM",
"average_receivables": "averageReceivablesTTM",
@@ -184,7 +184,7 @@ class FMPKeyMetricsData(KeyMetricsData):
description="Sales, General and Administrative to Revenue.",
title="SG&A to Revenue",
)
research_and_developement_to_revenue: float | None = Field(
research_and_development_to_revenue: float | None = Field(
default=None,
description="Research and Development to Revenue.",
title="R&D to Revenue",

View File

@@ -191,7 +191,7 @@ class FredRegionalData(SeriesData):
)
value: int | float | None = Field(
default=None,
description="The obersvation value. The units are defined in the search results by series ID.",
description="The observation value. The units are defined in the search results by series ID.",
)
series_id: str = Field(
description="The individual series ID for the region.",

View File

@@ -28,7 +28,7 @@ class GovernmentUSTreasuryAuctionsQueryParams(USTreasuryAuctionsQueryParams):
}
class GovernementUSTreasuryAuctionsData(USTreasuryAuctionsData):
class GovernmentUSTreasuryAuctionsData(USTreasuryAuctionsData):
"""US Government Treasury Auctions Data."""
__alias_dict__ = {
@@ -167,7 +167,7 @@ class GovernementUSTreasuryAuctionsData(USTreasuryAuctionsData):
class GovernmentUSTreasuryAuctionsFetcher(
Fetcher[
GovernmentUSTreasuryAuctionsQueryParams,
list[GovernementUSTreasuryAuctionsData],
list[GovernmentUSTreasuryAuctionsData],
]
):
"""Transform the query, extract and transform the data from the us treasury endpoints."""
@@ -230,7 +230,7 @@ class GovernmentUSTreasuryAuctionsFetcher(
query: GovernmentUSTreasuryAuctionsQueryParams,
data: list[dict],
**kwargs: Any,
) -> list[GovernementUSTreasuryAuctionsData]:
) -> list[GovernmentUSTreasuryAuctionsData]:
"""Transform the data."""
# pylint: disable=import-outside-toplevel
from math import isnan
@@ -243,5 +243,5 @@ class GovernmentUSTreasuryAuctionsFetcher(
}
return [
GovernementUSTreasuryAuctionsData.model_validate(clean_nan(d)) for d in data
GovernmentUSTreasuryAuctionsData.model_validate(clean_nan(d)) for d in data
]

View File

@@ -51,7 +51,7 @@ class IntrinioPriceTargetConsensusData(PriceTargetConsensusData):
default=None,
description="The standard deviation of target price estimates.",
)
total_anaylsts: int | None = Field(
total_analysts: int | None = Field(
default=None,
description="The total number of target price estimates in consensus.",
)

View File

@@ -612,7 +612,7 @@ def main():
{"label": "China", "value": "china"},
{"label": "Hong Kong", "value": "hong_kong"},
{"label": "Japan", "value": "japan"},
{"label": "Singapore", "value": "signapore"},
{"label": "Singapore", "value": "singapore"},
{"label": "South Korea", "value": "south_korea"},
{"label": "India", "value": "india"},
{"label": "Russia", "value": "russia"},

View File

@@ -861,7 +861,7 @@
},
{
"label": "Singapore",
"value": "signapore"
"value": "singapore"
},
{
"label": "South Korea",

View File

@@ -29,7 +29,7 @@ class TmxHistoricalDividendsData(HistoricalDividendsData):
currency: str | None = Field(
default=None, description="The currency the dividend is paid in."
)
decalaration_date: dateType | None = Field(
declaration_date: dateType | None = Field(
default=None, description="The date of the announcement."
)
record_date: dateType | None = Field(

View File

@@ -590,7 +590,7 @@ INDICES = {
"arca_xng": {"name": "NYSE ARCA Natural Gas Index", "ticker": "^XNG"},
"arca_hui": {"name": "NYSE ARCA Gold Bugs Index", "ticker": "^HUI"},
"arca_ixb": {"name": "NYSE Materials Select Sector Index", "ticker": "^IXB"},
"arca_drg": {"name": "NYSE ARCA Phramaceutical Index", "ticker": "^DRG"},
"arca_drg": {"name": "NYSE ARCA Pharmaceutical Index", "ticker": "^DRG"},
"arca_btk": {"name": "NYSE ARCA Biotech Index", "ticker": "^BKT"},
"arca_pse": {"name": "NYSE ARCA Tech 100 Index", "ticker": "^PSE"},
"arca_nwx": {"name": "NYSE ARCA Networking Index", "ticker": "^NWX"},