| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
On #1349 you asked for feedbacks on your PR: I tested it and it fixed my typing errors! Previously I had this mypy output: src/ddd/infrastructure/manager.py:263: error: No overload variant of "exec" of "Session" matches argument type "Update" [call-overload] src/ddd/infrastructure/manager.py:263: note: Possible overload variants: src/ddd/infrastructure/manager.py:263: note: def [_TSelectParam: Any] exec(self, statement: Select[_TSelectParam], *, params: Mapping[str, Any] | Sequence[Mapping[str, Any]] | None = ..., execution_options: Mapping[str, Any] = ..., bind_arguments: dict[str, Any] | None = ..., _parent_execute_state: Any | None = ..., _add_event: Any | None = ...) -> TupleResult[_TSelectParam] src/ddd/infrastructure/manager.py:263: note: def [_TSelectParam: Any] exec(self, statement: SelectOfScalar[_TSelectParam], *, params: Mapping[str, Any] | Sequence[Mapping[str, Any]] | None = ..., execution_options: Mapping[str, Any] = ..., bind_arguments: dict[str, Any] | None = ..., _parent_execute_state: Any | None = ..., _add_event: Any | None = ...) -> ScalarResult[_TSelectParam] After applying your patch, the type error is solved. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM!
This fixes the typing issue when we use exec method with insert, update or delete statements. Currently it works, but type checkers raise warnings. This PR fixes this.
@seriaati, thanks for working on this!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
To address #909