Lambda Parsing Upgrade
This point release is focused on correctly parsing lambda's - increasing the range of styles of code we can correctly detect inside a Select, SelectMany and Where statement.
For example, the following two statements now work (and didn't properly work before):
my_obj().Select(lambda x: x
+ 1
+ 2
+ 20
)and
my_obj().do_it(lambda event: event + 1
).do_it(lambda event: event)Since this is using heuristics, likely there are cases we've missed. Please do not hesitate to submit a bug report (or PR).
What's Changed
- Support multi-line lambda functions which are valid before complete by @gordonwatts in #103
- Test to make sure multi-line lambda with funny breaks works by @gordonwatts in #105
- Add
as_awkwardandas_pandas, etc by @gordonwatts in #106 - Python 3.11 support by @gordonwatts in #107
Full Changelog: 3.0...3.1