mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00

Co-authored-by: Micha Reiser <micha@reiser.io> Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
24 lines
365 B
Python
24 lines
365 B
Python
"""foo""" # ERROR PYI021
|
|
|
|
def foo():
|
|
"""foo""" # ERROR PYI021
|
|
|
|
class Bar:
|
|
"""bar""" # ERROR PYI021
|
|
|
|
class Qux:
|
|
"""qux""" # ERROR PYI021
|
|
|
|
def __init__(self) -> None: ...
|
|
|
|
class Baz:
|
|
"""Multiline docstring
|
|
|
|
Lorem ipsum dolor sit amet
|
|
"""
|
|
|
|
def __init__(self) -> None: ...
|
|
|
|
def bar():
|
|
x = 1
|
|
"""foo""" # OK, not a doc string
|