mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-02 16:11:41 +01:00
Merge branch 'fix/flake8_v5_warnings' into 'master'
Tools: Fix flake8 version 5 warnings See merge request espressif/esp-idf!19488
This commit is contained in:
@@ -134,9 +134,9 @@ class EntityNode:
|
||||
|
||||
def add_child(self, entity):
|
||||
child_specificity = self.entity.specificity.value + 1
|
||||
assert (child_specificity <= Entity.Specificity.SYMBOL.value)
|
||||
assert child_specificity <= Entity.Specificity.SYMBOL.value
|
||||
name = entity[Entity.Specificity(child_specificity)]
|
||||
assert (name and name != Entity.ALL)
|
||||
assert name and name != Entity.ALL
|
||||
|
||||
child = [c for c in self.children if c.name == name]
|
||||
assert (len(child) <= 1)
|
||||
@@ -174,7 +174,7 @@ class EntityNode:
|
||||
for sections in self.get_output_sections():
|
||||
placement = self.placements[sections]
|
||||
if placement.is_significant():
|
||||
assert (placement.node == self)
|
||||
assert placement.node == self
|
||||
|
||||
keep = False
|
||||
sort = None
|
||||
|
||||
@@ -65,7 +65,7 @@ class InputSectionDesc:
|
||||
"""
|
||||
|
||||
def __init__(self, entity, sections, exclusions=None, keep=False, sort=None):
|
||||
assert (entity.specificity != Entity.Specificity.SYMBOL)
|
||||
assert entity.specificity != Entity.Specificity.SYMBOL
|
||||
|
||||
self.entity = entity
|
||||
self.sections = set(sections)
|
||||
@@ -73,8 +73,8 @@ class InputSectionDesc:
|
||||
self.exclusions = set()
|
||||
|
||||
if exclusions:
|
||||
assert (not [e for e in exclusions if e.specificity == Entity.Specificity.SYMBOL or
|
||||
e.specificity == Entity.Specificity.NONE])
|
||||
assert not [e for e in exclusions if e.specificity == Entity.Specificity.SYMBOL or
|
||||
e.specificity == Entity.Specificity.NONE]
|
||||
self.exclusions = set(exclusions)
|
||||
else:
|
||||
self.exclusions = set()
|
||||
|
||||
Reference in New Issue
Block a user