Skip to content

Commit

Permalink
remove leading space from docstrings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Nov 18, 2024
1 parent a382d15 commit 9a3e3d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def bar(self, other: T): ...


class Invariant[T]:
""" make sure invariant doesn't think it knows the type param - narrowing to invariant isn't safe """
"""make sure invariant doesn't think it knows the type param - narrowing to invariant isn't safe """
def foo(self, other: object):
if isinstance(other, Invariant):
assert_type(other, Invariant[Any]) # Unknown
Expand All @@ -57,7 +57,7 @@ def bar(self, other: T) -> T: ...


class InvariantWithBound[T: float | bytes]:
""" make sure invariant doesn't think it knows the type param - narrowing to invariant isn't safe """
"""make sure invariant doesn't think it knows the type param - narrowing to invariant isn't safe """
def foo(self, other: object):
if isinstance(other, Invariant):
assert_type(other, Invariant[Any]) # Unknown
Expand Down

0 comments on commit 9a3e3d1

Please sign in to comment.