From 658b3df12358852d7351d652d829abdad8ab72d0 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 20 Mar 2020 13:56:30 +0200 Subject: [PATCH] Fixed an TypeError "super(type, obj): obj must be an instance or subtype of type" when device monitor is used with a custom dev-platform filter // Resolve #3431 --- HISTORY.rst | 3 ++- platformio/commands/device/filters/base.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 21c44eb6..2fa38d63 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -9,8 +9,9 @@ PlatformIO Core 4 4.3.1 (2020-??-??) ~~~~~~~~~~~~~~~~~~ -* Fixed an error "SyntaxError: 'return' with argument inside generator" for PIO Unified Debugger when Python 2.7 is used +* Fixed a SyntaxError "'return' with argument inside generator" for PIO Unified Debugger when Python 2.7 is used * Fixed an issue when ``lib_archive = no`` was not honored in `"platformio.ini" `__ +* Fixed an TypeError "super(type, obj): obj must be an instance or subtype of type" when device monitor is used with a custom dev-platform filter (`issue #3431 `_) 4.3.0 (2020-03-19) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/commands/device/filters/base.py b/platformio/commands/device/filters/base.py index bc0880b3..5c6d0400 100644 --- a/platformio/commands/device/filters/base.py +++ b/platformio/commands/device/filters/base.py @@ -20,7 +20,7 @@ from platformio.project.config import ProjectConfig class DeviceMonitorFilter(miniterm.Transform): def __init__(self, project_dir=None, environment=None): """ Called by PlatformIO to pass context """ - super(DeviceMonitorFilter, self).__init__() + miniterm.Transform.__init__(self) self.project_dir = project_dir self.environment = environment