Skip to content

Conversation

PrinsFrank
Copy link
Contributor

Right now, the range function returns a list Type for large numbers. we can narrow this down, because we do actually know the upper and lower bounds of the keys, by subtracting the lower bound from the upper bound and dividing that by the step number.

I think this covers all scenarios, let me know if I've missed anything!

@PrinsFrank PrinsFrank force-pushed the range-returns-list-with-known-nr-of-elements branch from 783dac8 to 884429f Compare August 20, 2025 19:32
@staabm
Copy link
Contributor

staabm commented Aug 21, 2025

Misses a type-inference test which fails without the patch using assertType

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.

2 participants