Skip to content

Commit

Permalink
fixup! ⬆️(project) upgrade python dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaupetit committed Aug 14, 2024
1 parent 9313151 commit e0c7be5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/api/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ pyarrow = "==17.0.0"
pydantic-extra-types = {extras = ["all"], version = "==2.9.0"}
pydantic-settings = "==2.4.0"
pyjwt = "==2.9.0"
python-multipart = "==0.0.9"
questionary = "==2.0.1"
sentry-sdk = {extras = ["fastapi"], version = "==2.13.0"}
setuptools = "==72.2.0"
sqlalchemy-timescaledb = "==0.4.1"
sqlmodel = "==0.0.21"
sqlmodel = "==0.0.19"
typer = "==0.12.3"
uvicorn = {extras = ["standard"] }

Expand Down
17 changes: 13 additions & 4 deletions src/api/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/api/qualicharge/schemas/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ class StatiqueSchemasEntryIndex(NamedTuple):
(localisation, localisations),
):
if entry not in entries: # type: ignore[operator]
entries.append(entry) # type: ignore[attr-defined]
indexes.append(entries.index(entry)) # type: ignore[attr-defined]
entries.append(entry) # type: ignore[arg-type]
indexes.append(entries.index(entry)) # type: ignore[arg-type]
statiques_db_refs.append(StatiqueSchemasEntryIndex(*indexes))

# Create database entries for each schema
Expand All @@ -292,9 +292,9 @@ class StatiqueSchemasEntryIndex(NamedTuple):
(enseignes, None),
(localisations, {"adresse_station"}),
):
for idx, entry in enumerate(entries): # type: ignore[arg-type]
for idx, entry in enumerate(entries): # type: ignore[assignment]
_, db_entry = get_or_create(session, entry, fields, add=False)
entries[idx] = db_entry # type: ignore[index]
entries[idx] = db_entry # type: ignore[call-overload]
session.add_all(entries) # type: ignore[arg-type]

# Handle relationships
Expand Down

0 comments on commit e0c7be5

Please sign in to comment.