mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-16050 Formatter inserts exactly one space after ":" and "->" in annotations
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
def foo(x : int):
|
||||
def foo(x : int) -> object:
|
||||
pass
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
def foo(x: int):
|
||||
def foo(x: int) -> object:
|
||||
pass
|
||||
|
||||
@@ -4,6 +4,6 @@ class A:
|
||||
|
||||
|
||||
class B(A):
|
||||
def __init__(this:'B', y, x):
|
||||
def __init__(this: 'B', y, x):
|
||||
super().__init__(x)
|
||||
this.y = y
|
||||
@@ -3,5 +3,5 @@ class A:
|
||||
pass
|
||||
|
||||
class B(A):
|
||||
def __init__(self, d:str, a:int, b:float, *args:tuple, e:bytes, c:complex, **kwargs:dict) -> list:
|
||||
def __init__(self, d: str, a: int, b: float, *args: tuple, e: bytes, c: complex, **kwargs: dict) -> list:
|
||||
super().__init__(a, b, *args, c=c, **kwargs)
|
||||
@@ -5,6 +5,7 @@ class ArgsTest:
|
||||
comment:str=None, version:int=None): pass
|
||||
|
||||
class Sub(ArgsTest):
|
||||
def __init__(self, key:str=None, value:str=None, max_age=None, expires=None, path:str=None, domain:str=None,
|
||||
secure:bool=False, httponly:bool=False, sync_expires:bool=True, comment:str=None, version:int=None):
|
||||
<selection>super().__init__(key, value, max_age, expires, path, domain, secure, httponly, sync_expires, comment, version)</selection>
|
||||
def __init__(self, key: str=None, value: str=None, max_age=None, expires=None, path: str=None, domain: str=None,
|
||||
secure: bool=False, httponly: bool=False, sync_expires: bool=True, comment: str=None,
|
||||
version: int=None):
|
||||
super().__init__(key, value, max_age, expires, path, domain, secure, httponly, sync_expires, comment, version)
|
||||
|
||||
Reference in New Issue
Block a user