Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autopep8 line length not working with async def function #727

Closed
j-z10 opened this issue Mar 12, 2024 · 0 comments
Closed

autopep8 line length not working with async def function #727

j-z10 opened this issue Mar 12, 2024 · 0 comments

Comments

@j-z10
Copy link
Contributor

j-z10 commented Mar 12, 2024

The line length of async def async_function_foo(...) exceeds 120 characters, but autopep8 does not modify its formatting.
However, it works as expected with def sync_function_foo(...)


Python Code

async def async_function_foo(argument_01: int, argument_02: int, argument_03: int, argument_04: int, argument_05: int, argument_06: int) -> int:
    return argument_01 + argument_02 + argument_03 + argument_04 + argument_05 + argument_06

def sync_function_foo(argument_01: int, argument_02: int, argument_03: int, argument_04: int, argument_05: int, argument_06: int) -> int:
    return argument_01 + argument_02 + argument_03 + argument_04 + argument_05 + argument_06

Command Line

$ autopep8 -aaa --experimental --max-line-length 120

Your Environment

  • Python version: 3.11.4
  • autopep8 version: autopep8 2.0.4 (pycodestyle: 2.11.1)
  • Platform: windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant