Code Monkey home page Code Monkey logo

Comments (4)

kapsh avatar kapsh commented on July 17, 2024

Temporary workaround is to add empty line after "Args:" if it suits you.

from docformatter.

AlexArcPy avatar AlexArcPy commented on July 17, 2024

@kapsh thanks for sharing. Do you mean I'd need to go and add an empty line manually after each Args where there are no Returns specified? :)

from docformatter.

kapsh avatar kapsh commented on July 17, 2024

@AlexArcPy you can sed '/Args:/ a \ ' these files (with false positives probably).

from docformatter.

myint avatar myint commented on July 17, 2024

A temporary workaround could be to disable description wrapping in general for now:

$ docformatter foo.py --wrap-descriptions=0
--- before/foo.py
+++ after/foo.py
@@ -1,22 +1,22 @@
 class BinaryIOBase(object):
     def __init__(self, stream):
-        """Initializes an instance of Binary IO class using the supplied output stream.
+        """Initializes an instance of Binary IO class using the supplied output
+        stream.

         Args:
             stream (BinaryIO): Binary stream (usually a file object).
-
         """
         self.stream = stream

 class BinaryIOBase(object):
     def __init__(self, stream):
-        """Initializes an instance of Binary IO class using the supplied output stream.
+        """Initializes an instance of Binary IO class using the supplied output
+        stream.

         Args:
             stream (BinaryIO): Binary stream (usually a file object).

         Returns:
             str: result
-
         """
         self.stream = stream

from docformatter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.