Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Auto-editing glitch

I'm trying to change the signature of the following function by assigning a default value max_area=-1

def drawContours(self, contours, min_area, max_area):

First step: Typing the equal sign gives (as expected)

def drawContours(self, contours, min_area, max_area = ):

Second step: Type the minus. Result is now:

def drawContours(self, contours, min_area, max_area = )-> :

Attached my settings (not quite sure, which one is responsible here). image description

Auto-editing glitch

I'm trying to change the signature of the following function by assigning a default value max_area=-1

def drawContours(self, contours, min_area, max_area):

First step: Typing the equal sign gives (as expected)

def drawContours(self, contours, min_area, max_area = ):

Second step: Type the minus. Result is now:

def drawContours(self, contours, min_area, max_area = )-> :

Attached my settings (not quite sure, which one is responsible here). here. Apparently a combination that tries very hard to enforce a type hint). image description

Auto-editing glitch

I'm trying to change the signature of the following function by assigning a default value max_area=-1

def drawContours(self, contours, min_area, max_area):

First step: Typing the equal sign gives (as expected)

def drawContours(self, contours, min_area, max_area = ):

Second step: Type the minus. Result is now:

def drawContours(self, contours, min_area, max_area = )-> :

Attached my settings (not quite sure, which one is responsible here. Apparently a combination that tries very hard to enforce a type hint). image description

Auto-editing glitch

I'm trying to change the signature of the following function by assigning a default value max_area=-1

def drawContours(self, contours, min_area, max_area):

First step: Typing the equal sign gives (as expected)

def drawContours(self, contours, min_area, max_area = ):

Second step: Type the minus. Result is now:

def drawContours(self, contours, min_area, max_area = )-> :

Attached my settings (not quite sure, which one is responsible here. Apparently a combination that tries very hard to enforce a type hint). image description