Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mypyc crash with plugins using
get_customize_class_mro_hook
(#7075
) The semanal code that invoked it created an `Expression` directly, which mypyc barfs on because it is a trait. Fixes #6706.
- Loading branch information
Showing
5 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from mypy.plugin import Plugin | ||
|
||
class DummyPlugin(Plugin): | ||
def get_customize_class_mro_hook(self, fullname): | ||
def analyze(classdef_ctx): | ||
pass | ||
return analyze | ||
|
||
def plugin(version): | ||
return DummyPlugin |