Skip to content

Commit

Permalink
mypy.ini and ignore attr-defined
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhagarwal03 committed Aug 9, 2024
1 parent 0e31163 commit 0654f3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[mypy-moralis]
ignore_missing_imports = True
2 changes: 1 addition & 1 deletion src/price_providers/dune_pricing.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_price(self, block_number: int, token_address: str) -> Optional[float]:
),
],
)
result = dune.run_query(query=query)
result = dune.run_query(query=query) # type: ignore[attr-defined]
if result.result.rows:
row = result.result.rows[0]
price = row.get("price")
Expand Down

0 comments on commit 0654f3c

Please sign in to comment.