Enable the "possibly-undefined" error code
This commit is contained in:
parent
dafc695693
commit
7190724260
1 changed files with 4 additions and 1 deletions
|
|
@ -36,9 +36,10 @@ def gridify() -> None: # pragma: no cover note:b1f68d24
|
|||
|
||||
# Because the number of assigned addresses is the same across
|
||||
# different `side_length`s, we can take the last `grid` from the `city`.
|
||||
last_grid_id = grid.id # type: ignore[possibly-undefined]
|
||||
n_assigned = (
|
||||
db.session.query(db.AddressPixelAssociation)
|
||||
.filter(db.AddressPixelAssociation.grid_id == grid.id)
|
||||
.filter(db.AddressPixelAssociation.grid_id == last_grid_id)
|
||||
.count()
|
||||
)
|
||||
click.echo(
|
||||
|
|
|
|||
Loading…
Reference in a new issue