mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
So that other annotations, such as the one for builtin symbols, always have priority over it, but it still was possible to, say, add a background color or a font style for type annotations using this new settings.
7 lines
522 B
Python
7 lines
522 B
Python
TOP_LEVEL: <info descr="PY.ANNOTATION"><info descr="PY.BUILTIN_NAME">str</info></info> = 'foo'
|
|
|
|
class <info descr="PY.CLASS_DEFINITION">C</info>:
|
|
attr: <info descr="PY.ANNOTATION">Optional[Any]</info> = None
|
|
def <info descr="PY.FUNC_DEFINITION">method</info>(<info descr="PY.SELF_PARAMETER">self</info>, <info descr="PY.PARAMETER">xs</info>: <info descr="PY.ANNOTATION">List[<info descr="PY.BUILTIN_NAME">int</info>]</info>) -> <info descr="PY.ANNOTATION"><info descr="PY.KEYWORD">None</info></info>:
|
|
pass
|