Skip to content

Commit

Permalink
fix typing of chip_erase from bool -> str
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsIrl authored and ithinuel committed Feb 23, 2025
1 parent 38037ab commit ca5b9e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyocd/flash/file_programmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class FileProgrammer(object):
def __init__(self,
session: "Session",
progress: Optional[ProgressCallback] = None,
chip_erase: Optional[bool] = None,
chip_erase: Optional[str] = None,
smart_flash: Optional[bool] = None,
trust_crc: Optional[bool] = None,
keep_unwritten: Optional[bool] = None,
Expand Down
4 changes: 2 additions & 2 deletions pyocd/flash/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class MemoryLoader:
_progress_offset: float
_current_progress_fraction: float

_chip_erase: Optional[bool]
_chip_erase: Optional[str]
_smart_flash: Optional[bool]
_trust_crc: Optional[bool]
_keep_unwritten: Optional[bool]
Expand All @@ -147,7 +147,7 @@ class MemoryLoader:
def __init__(self,
session: "Session",
progress: Optional[ProgressCallback] = None,
chip_erase: Optional[bool] = None,
chip_erase: Optional[str] = None,
smart_flash: Optional[bool] = None,
trust_crc: Optional[bool] = None,
keep_unwritten: Optional[bool] = None,
Expand Down

0 comments on commit ca5b9e8

Please sign in to comment.