Skip to content

Commit

Permalink
chg: Bump poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Jan 7, 2025
1 parent 07cfe53 commit bcfb172
Show file tree
Hide file tree
Showing 4 changed files with 160 additions and 271 deletions.
5 changes: 3 additions & 2 deletions lacuscore/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import Any, TypedDict, Literal
from collections.abc import MutableMapping, Mapping

from defang import refang # type: ignore[import-untyped]
from defang import refang
from pydantic import BaseModel, field_validator, model_validator, ValidationError
from pydantic_core import from_json

Expand Down Expand Up @@ -149,7 +149,8 @@ def check_capture_element(self) -> CaptureSettings:
@classmethod
def load_url(cls, url: str | None) -> str | None:
if isinstance(url, str):
_url = refang(url) # In case we get a defanged url at this stage.
# In case we get a defanged url at this stage.
_url = refang(url) # type: ignore[no-untyped-call]
if (not _url.lower().startswith('data:')
and not _url.lower().startswith('http:')
and not _url.lower().startswith('https:')
Expand Down
1 change: 1 addition & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ strict = True
warn_return_any = False
show_error_context = True
pretty = True
follow_untyped_imports = True

[mypy-docs.source.*]
ignore_errors = True
Loading

0 comments on commit bcfb172

Please sign in to comment.