mpage

Results 9 comments of mpage

@MaicoTimmerman - Thanks for the report! That is a strange error - the index of the last instruction that was executed is outside the bounds of the bytecode in the...

+1 for the decorator approach as well. If we're going to break backwards compatibility let's fix the issue once and for all.

Thanks for the report! Unfortunately there is no way to specify the key and value types for `OrderedDict` in an annotation. For ordinary dictionaries, the `typing` module provides `typing.Dict` which...

@carljm - +1 for leaving this open to track the limitation. @omermazig - Good suggestion! I think I'd be fine with that approach; mypy should catch the cases where code...

Thanks for the report! I'm not sure what the right thing to do here is. I'm going to leave this open until we figure out the best course of action...

@thedrow - How are you imagining that this would be used? For most projects the number of generated stubs will likely be too large to be consumable in a useful...

pyperformance results are [perf-neutral](https://gist.github.com/mpage/f0c27ef2893c89667e25b7d344e02800). I also wrote a [microbenchmark](https://gist.github.com/mpage/b3006c3b490460272d7a95438345b3f3) that attempts to measure the overhead on function creation when no callbacks are present. Happy to use a different benchmark and/or...

The failing test appears unrelated to this diff. Is there a way that I can re-run the test without adding additional commits?

> * `PyFunction_SetDefaults` should emit a `PyFunction_EVENT_MODIFY_DEFAULTS` event, no? > * `PyFunction_SetKwDefaults` should emit a `PyFunction_EVENT_MODIFY_KWDEFAULTS` event, no? Yep, good catch! > * Why no events for `func_closure` and `func_annotations`...