◐ Shell
clean mode source ↗

Add typings by bryanforbes · Pull Request #577 · MagicStack/asyncpg

@bryanforbes marked this pull request as draft

May 26, 2020 14:42

elprans added a commit that referenced this pull request

Jul 19, 2020
Add the new `record_class` parameter to the `create_pool()` and
`connect()` functions, as well as to the `cursor()`, `prepare()`,
`fetch()` and `fetchrow()` connection methods.

This not only allows adding custom functionality to the returned
objects, but also assists with typing (see #577 for discussion).

Fixes: #40.

elprans added a commit that referenced this pull request

Jul 19, 2020
Add the new `record_class` parameter to the `create_pool()` and
`connect()` functions, as well as to the `cursor()`, `prepare()`,
`fetch()` and `fetchrow()` connection methods.

This not only allows adding custom functionality to the returned
objects, but also assists with typing (see #577 for discussion).

Fixes: #40.

elprans added a commit that referenced this pull request

Jul 19, 2020
Add the new `record_class` parameter to the `create_pool()` and
`connect()` functions, as well as to the `cursor()`, `prepare()`,
`fetch()` and `fetchrow()` connection methods.

This not only allows adding custom functionality to the returned
objects, but also assists with typing (see #577 for discussion).

Fixes: #40.

elprans

elprans added a commit that referenced this pull request

Aug 8, 2020
Add the new `record_class` parameter to the `create_pool()` and
`connect()` functions, as well as to the `cursor()`, `prepare()`,
`fetch()` and `fetchrow()` connection methods.

This not only allows adding custom functionality to the returned
objects, but also assists with typing (see #577 for discussion).

Fixes: #40.

elprans added a commit that referenced this pull request

Aug 8, 2020
Add the new `record_class` parameter to the `create_pool()` and
`connect()` functions, as well as to the `cursor()`, `prepare()`,
`fetch()` and `fetchrow()` connection methods.

This not only allows adding custom functionality to the returned
objects, but also assists with typing (see #577 for discussion).

Fixes: #40.

elprans added a commit that referenced this pull request

Aug 14, 2020
Add the new `record_class` parameter to the `create_pool()` and
`connect()` functions, as well as to the `cursor()`, `prepare()`,
`fetch()` and `fetchrow()` connection methods.

This not only allows adding custom functionality to the returned
objects, but also assists with typing (see #577 for discussion).

Fixes: #40.

elprans added a commit that referenced this pull request

Aug 15, 2020
Add the new `record_class` parameter to the `create_pool()` and
`connect()` functions, as well as to the `cursor()`, `prepare()`,
`fetch()` and `fetchrow()` connection methods.

This not only allows adding custom functionality to the returned
objects, but also assists with typing (see #577 for discussion).

Fixes: #40.
Add typings to the project and check the project using mypy.
`PostgresMessage` and `PoolConnectionProxy` were broken out into their
own files to make it easier to add typing via stub (pyi) files. Since
they are metaclasses which generate dynamic objects, we can't type them
directly in their python module.

@bryanforbes

@Askir Askir mentioned this pull request

Oct 19, 2024