Wrap long lines (cosmetic)
This commit is contained in:
parent
75b42f6b63
commit
02c3d300e0
1 changed files with 5 additions and 3 deletions
|
|
@ -548,8 +548,8 @@ class Pattern:
|
||||||
|
|
||||||
def copy(self) -> 'Pattern':
|
def copy(self) -> 'Pattern':
|
||||||
"""
|
"""
|
||||||
Return a copy of the Pattern, deep-copying shapes and copying subpattern entries, but not
|
Return a copy of the Pattern, deep-copying shapes and copying subpattern
|
||||||
deep-copying any referenced patterns.
|
entries, but not deep-copying any referenced patterns.
|
||||||
|
|
||||||
See also: Pattern.deepcopy()
|
See also: Pattern.deepcopy()
|
||||||
|
|
||||||
|
|
@ -575,7 +575,9 @@ class Pattern:
|
||||||
|
|
||||||
:return: True if the pattern is empty.
|
:return: True if the pattern is empty.
|
||||||
"""
|
"""
|
||||||
return (len(self.subpatterns) == 0 and len(self.shapes) == 0 and len(self.labels) == 0)
|
return (len(self.subpatterns) == 0 and
|
||||||
|
len(self.shapes) == 0 and
|
||||||
|
len(self.labels) == 0)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def load(filename: str) -> 'Pattern':
|
def load(filename: str) -> 'Pattern':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue