ruff/crates/ruff_linter/resources/test/fixtures/pydocstyle/D208.py
ukyen e83388dcea
Don't raise D208 when last line is non-empty (#13372)
Co-authored-by: Micha Reiser <micha@reiser.io>
2024-09-26 14:53:21 +02:00

49 lines
923 B
Python
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
Author
"""
class Platform:
""" Remove sampler
Args:
    Returns:
"""
def memory_test():
"""
   参数含义precision:精确到小数点后几位
"""
class Platform:
"""Over indented last line
Args:
Returns:
"""
class Platform:
"""All lines are over indented including the last containing the closing quotes
Args:
Returns:
"""
class Platform:
"""All lines are over indented including the last
Args:
Returns"""
# OK: This doesn't get flagged because it is accepted when the closing quotes are on a separate line (see next test). Raises D209
class Platform:
"""Over indented last line with content
Args:
Some content on the last line"""
# OK:
class Platform:
"""Over indented last line with content
Args:
Some content on the last line
"""