Fix two types to be Optional (#607)
This commit is contained in:
parent
fbf59b60d7
commit
5bc62a4a82
4
black.py
4
black.py
@ -1892,7 +1892,7 @@ def container_of(leaf: Leaf) -> LN:
|
||||
return container
|
||||
|
||||
|
||||
def is_split_after_delimiter(leaf: Leaf, previous: Leaf = None) -> int:
|
||||
def is_split_after_delimiter(leaf: Leaf, previous: Optional[Leaf] = None) -> int:
|
||||
"""Return the priority of the `leaf` delimiter, given a line break after it.
|
||||
|
||||
The delimiter priorities returned here are from those delimiters that would
|
||||
@ -1906,7 +1906,7 @@ def is_split_after_delimiter(leaf: Leaf, previous: Leaf = None) -> int:
|
||||
return 0
|
||||
|
||||
|
||||
def is_split_before_delimiter(leaf: Leaf, previous: Leaf = None) -> int:
|
||||
def is_split_before_delimiter(leaf: Leaf, previous: Optional[Leaf] = None) -> int:
|
||||
"""Return the priority of the `leaf` delimiter, given a line break before it.
|
||||
|
||||
The delimiter priorities returned here are from those delimiters that would
|
||||
|
Loading…
Reference in New Issue
Block a user