File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,24 @@ pip install flake8-type-checking
128128
129129These options are configurable, and can be set in your flake8 config.
130130
131+ ### Typing modules
132+
133+ If you re-export ` typing ` or ` typing_extensions ` members from a compatibility
134+ module, you will need to specify them here in order for inference to work
135+ correctly for special forms like ` Literal ` or ` Annotated ` .
136+
137+ If you use relative imports for the compatibility module in your code-base
138+ you will need to add separate entries for each kind of relative import you
139+ use.
140+
141+ - ** setting name** : ` type-checking-typing-modules `
142+ - ** type** : ` list `
143+
144+ ``` ini
145+ [flake8]
146+ type-checking-typing-modules = mylib.compat, .compat, ..compat # default []
147+ ```
148+
131149### Exempt modules
132150
133151If you wish to exempt certain modules from
You can’t perform that action at this time.
0 commit comments