Skip to content

Commit d344a7c

Browse files
Bump mypy from 0.931 to 1.9.0 (#119)
* Bump mypy from 0.931 to 1.9.0 Bumps [mypy](https://github.com/python/mypy) from 0.931 to 1.9.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](python/mypy@v0.931...1.9.0) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * type fixes --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Amethyst Reese <[email protected]>
1 parent 536a162 commit d344a7c

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

aql/column.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class Column:
8484
def __init__(
8585
self,
8686
name: str,
87-
ctype: Type = None,
87+
ctype: Optional[Type] = None,
8888
default: Any = NO_DEFAULT,
8989
table_name: str = "",
9090
) -> None:

aql/engines/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def last_id(self) -> Optional[int]:
200200
"""ID of last modified row, or None if not available."""
201201
raise self._cursor.lastrowid
202202

203-
def convert(self, row) -> T:
203+
def convert(self, row) -> T: # type: ignore[type-var]
204204
"""Convert from the cursor's native data type to the query object type."""
205205
if self._query:
206206
return self._query.table(row)

aql/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def orderby(self, column: Column, *args: Union[Column, Order, str]) -> "Query[T]
201201
return self
202202

203203
@only()
204-
def limit(self, n: int, offset: int = None) -> "Query[T]":
204+
def limit(self, n: int, offset: Optional[int] = None) -> "Query[T]":
205205
self._limit = n
206206
self._offset = offset
207207
return self

aql/table.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ class Table(Generic[T]):
3131
"""Table specification using custom columns and a source type."""
3232

3333
def __init__(
34-
self, name: str, cons: Iterable[Union[Column, Index]], source: Type[T] = None
34+
self,
35+
name: str,
36+
cons: Iterable[Union[Column, Index]],
37+
source: Optional[Type[T]] = None,
3538
) -> None:
3639
self._name = name
3740
self._columns: List[Column] = []

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dev = [
3636
"flake8==7",
3737
"flake8-bugbear==24.4.21",
3838
"flit==3.9.0",
39-
"mypy==0.931",
39+
"mypy==1.9.0",
4040
"usort==1.0.8.post1",
4141
]
4242
docs = [

0 commit comments

Comments
 (0)