Skip to content

Unpin typing_extensions#1948

Merged
ColCarroll merged 1 commit intoarviz-devs:mainfrom
ColCarroll:update-typing-extensions
Dec 9, 2021
Merged

Unpin typing_extensions#1948
ColCarroll merged 1 commit intoarviz-devs:mainfrom
ColCarroll:update-typing-extensions

Conversation

@ColCarroll
Copy link
Member

Fixes #1947. I also had some trouble installing some requirements-external.txt, but I didn't include those in the change so far.

I'll tag @obi1kenobi who originally added this pin, I think it was just defensive against the next major version, but if the mypy checks pass, I think we can merge.

Copy link
Contributor

@obi1kenobi obi1kenobi left a comment

Choose a reason for hiding this comment

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

Yup, purely defensive — agreed that it's probably safe to merge if tests pass.

Pointing out two minor things for you to consider. I don't have strong feelings one way or the other, just wanted to point them out to make sure it's an intentional decision whichever way it goes.

# fake 8-school output
obj = {}
for key, shape in {"mu": [], "tau": [], "eta": [8], "theta": [8]}.items():
shapes: Mapping[str, list] = {"mu": [], "tau": [], "eta": [8], "theta": [8]}
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider something more specific than list so it captures the types within the list? I'm not sure what np.random.randn requires the type of shape to be, exactly.

Copy link
Member Author

Choose a reason for hiding this comment

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

i was actually surprised this popped up -- this is a literal dict used once, so List[int] (or something...) seems like it should have been deduced.

@ColCarroll ColCarroll merged commit 26c14da into arviz-devs:main Dec 9, 2021
@ColCarroll ColCarroll deleted the update-typing-extensions branch December 9, 2021 01:51
@gothicVI
Copy link

gothicVI commented Feb 2, 2022

The fix is great but can we also get a new release?

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.

Remove typing_extensions "<4" version guard

3 participants