Commit Graph
2 Commits
Author SHA1 Message Date
Tomer KerenandJelle Zijlstra be99a2a5f0 Use a more accurate type for predicates in itertools (#2732)
The only constraint on the return value of a predicate is to be "boolable".
Because `bool` recives an object in the constructor https://github.com/python/typeshed/blob/master/stdlib/2and3/builtins.pyi#L803 this is a more accurate description of a predicate.
2019-01-10 11:30:28 -08:00
Tomer KerenandSebastian Rittau d9a202e352 Make appropriate ast methods generic (#2715)
Closes #2714
2018-12-24 20:03:09 +01:00