Skip to content

Typechecks - #9

Draft
stefano-maggiolo wants to merge 8 commits into
masterfrom
typechecks
Draft

Typechecks#9
stefano-maggiolo wants to merge 8 commits into
masterfrom
typechecks

Conversation

@stefano-maggiolo

@stefano-maggiolo stefano-maggiolo commented Jun 16, 2021

Copy link
Copy Markdown
Owner

This change is Reviewable

@codecov

codecov Bot commented Jun 16, 2021

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

Therefore, it need casting to be used as a range endpoint.

Found with typechecking.
I didn't see anything worrying in the changelogs, but there's only one
way to find out... have people try it.
- as_declarative() has been removed, but the substitution is
  essentially 1:1;

- URL is an immutable namedtuple, so we can't just update one field;

- apparently in 1.3 there was some auto-unpacking of results of
  queries with one field, which does not work anymore in 1.4; I think
  this is related to
  https://docs.sqlalchemy.org/en/14/changelog/migration_14.html#rowproxy-is-no-longer-a-proxy-is-now-called-row-and-behaves-like-an-enhanced-named-tuple;

- custom types using TypeDecorator should now specify cache_ok = True
  to take advantage of the new caching of SQL statements.
Nit found thanks to pytype. If it is inside the try catch, python
doesn't know those variables are defined in the except clause.
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.

1 participant