You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 5, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 5, 2023. It is now read-only.
That's odd, since that definition in typed_ast's ast.c (at line 22) should not be used with Python 3.8. It is inside #if PY_MINOR_VERSION < 6.
What's the value of PY_MINOR_VERSION at that point? (Also, what version of Python 3.8 is being used? beta 1, or the head of upstream cpython's 3.8 branch? Though it probably doesn't matter.)
So there's nothing for us to do here, right? This will right itself with the next mypy release. Until then, Red Hat can choose to patch mypy's setup.py to allow typed_ast 1.4.0.
On Sat, Jun 15, 2019 at 1:36 PM Guido van Rossum ***@***.***> wrote:
So there's nothing for us to do here, right? This will right itself with
the next mypy release. Until then, Red Hat can choose to patch mypy's
setup.py to allow typed_ast 1.4.0.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#124?email_source=notifications&email_token=AACTC7JDID6HZSBMTRHGAS3P2VHEHA5CNFSM4HYI6Q52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXY7VRI#issuecomment-502397637>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACTC7JPDK7NT2OK22FRWN3P2VHEHANCNFSM4HYI6Q5Q>
.
I ran into this because the latest brew install pre-commit depends on Python 3.8. Bumping mypy to v0.761 in .pre-commit-config.yaml fixed the problem for me.
Reacted by Raúl Negrón-Otero, Stephen Smith, Ben Norquist, Roger Li, Matt Green, cah-david-weirich, Miranda Aperghis, fesantana and 66CCFF
@soffes Had a pre-commit problem, so I searched conflicting types for '_PyObject_FastCall' on Google, and followed the instructions at the first hit. It was an unexpected delight that the solution to my problems was provided by you! Hope you are well!
Activity
gvanrossum commentedon Jun 14, 2019
That's odd, since that definition in typed_ast's
ast.c(at line 22) should not be used with Python 3.8. It is inside#if PY_MINOR_VERSION < 6.What's the value of
PY_MINOR_VERSIONat that point? (Also, what version of Python 3.8 is being used? beta 1, or the head of upstream cpython's 3.8 branch? Though it probably doesn't matter.)I cannot repro this in my own environment (Mac).
apalala commentedon Jun 15, 2019
I can confirm that the build fails with 3.8b1 over
pip instally mypy.msullivan commentedon Jun 15, 2019
typed-ast 1.3.5 doesn't build on 3.8 but 1.4.0 does. The latest mypy release still depends on <1.4.0, though
gvanrossum commentedon Jun 15, 2019
So there's nothing for us to do here, right? This will right itself with the next mypy release. Until then, Red Hat can choose to patch mypy's setup.py to allow typed_ast 1.4.0.
msullivan commentedon Jun 16, 2019
soffes commentedon Feb 5, 2020
I ran into this because the latest
brew install pre-commitdepends on Python 3.8. Bumping mypy tov0.761in.pre-commit-config.yamlfixed the problem for me.rnegron commentedon May 8, 2020
Thanks soffes, your solution worked for me :)
stephensmithlyft commentedon Jun 15, 2020
@soffes Had a pre-commit problem, so I searched
conflicting types for '_PyObject_FastCall'on Google, and followed the instructions at the first hit. It was an unexpected delight that the solution to my problems was provided by you! Hope you are well!cah-david-weirich commentedon Aug 4, 2020
Thank you @soffes ! This ended two days of headaches for me!
jcomo commentedon Oct 17, 2020
Hello @stephensmithlyft and @soffes 👋 - I'm equally delighted to see both of you in this thread, and thanks Sam for the fix :)
soffes commentedon Oct 17, 2020
Haha hi @jcomo 😃
stephensmithlyft commentedon Oct 19, 2020
Hi @jcomo and thanks again @soffes -- I had to repeat this fix in a different repository last week.