Skip to content

Syntax error in gen_esp32part.py of v2.0.4 #6957

Closed
@cxkkxrr

Description

@cxkkxrr

Board

ESP32 Dev Module

Device Description

No

Hardware Configuration

No

Version

latest master (checkout manually)

IDE Name

Arduino Ide

Operating System

macOS

Flash frequency

4mb

PSRAM enabled

no

Upload speed

115200

Description

gen_esp32part.py SyntaxError: invalid syntax
[line 254] def verify_size_fits(self, flash_size_bytes: int) -> None:

It's normal for me to modify it like this
def verify_size_fits(self, flash_size_bytes):

Sketch

Nothing

Debug Message

File "/Users/xxx/Library/Arduino15/packages/esp32/hardware/esp32/2.0.4/tools/gen_esp32part.py", line 254
    def verify_size_fits(self, flash_size_bytes: int) -> None:
                                               ^
SyntaxError: invalid syntax

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions