Skip to content

Update sqlalchemy stubs - #857

Merged
gvanrossum merged 5 commits into
python:masterfrom
WouldYouKindly:master
Jan 23, 2017
Merged

gvanrossum merged 5 commits into
python:masterfrom
WouldYouKindly:master

Conversation

@WouldYouKindly

@WouldYouKindly WouldYouKindly commented Jan 22, 2017 •

Copy link
Copy Markdown
Contributor

I believe this covers both 647 and 719.

Moved sqlalchemy stubs from 2 to 2and3;
changed sqlalchemy/util/compat.pyi:37 to be of type typing.Text;
added incomplete stubs for sqlalchemy.orm.utils and slqalchemy.sql.elements.ColumnElement.

ptz and others added 5 commits January 22, 2017 18:46
… Changed sqlalchemy/util/compat.pyi:37 to typing.Text
…ncomplete stub for class third_party/2and3/sqlalchemy/sql/elements/ColumnElement
@WouldYouKindly WouldYouKindly changed the title Move sqlalchemy stubs from 2 to 2and3; add incomplete stubs for sqlalchemy.orm.utils and slqalchemy.sql.elements.ColumnElement Update sqlalchemy stubs Jan 22, 2017
@gvanrossum
gvanrossum merged commit ccdc609 into python:master Jan 23, 2017
@gvanrossum

Copy link
Copy Markdown
Member

Thanks!!! I've verified this only to the extent that it doesn't cause regressions for our internal codebases.

I'll now close #719.

Regarding #647, do you feel up to extracting the pymysql stubs from that and submitting those as a separate PR?

@WouldYouKindly

Copy link
Copy Markdown
Contributor Author

@gvanrossum Yes. I'm hoping to send a PR before/on the weekend.

foreign_keys = [] # type: Any
_label = None
_key_label = key = None
_alt_names = ()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed variable annotations above are failing mypy's own tests.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guess I'll just annotate them with Any for now... I'll submit a PR in a few days.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already did, no worries! Just keep this in mind for future PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants