Skip to content

The release attrs==21.1.0 broke pytype check #655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
plamut opened this issue May 7, 2021 · 0 comments · Fixed by #656
Closed

The release attrs==21.1.0 broke pytype check #655

plamut opened this issue May 7, 2021 · 0 comments · Fixed by #656
Assignees
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. type: process A process-related concern. May include testing, release, or the like.

Comments

@plamut
Copy link
Contributor

plamut commented May 7, 2021

Running the pytype check on master fails:

$ nox -s pytype
...
    return attr.evolve(self, *args, **kwargs)
  File "/home/peter/workspace/python-bigquery/.nox/pytype/lib/python3.8/site-packages/attr/_funcs.py", line 347, in evolve
    changes[init_name] = evolve(value, **changes[init_name])
TypeError: evolve() argument after ** must be a mapping, not NamedType
...

This happens with the most recent attrs release, namely 21.1.0. The error does not happen in a release before that (attrs==20.3.0).

A possible workaround is to temporarily force installing that version before running pytype.

@plamut plamut self-assigned this May 7, 2021
@plamut plamut added the type: process A process-related concern. May include testing, release, or the like. label May 7, 2021
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. type: process A process-related concern. May include testing, release, or the like.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant