About 111,000 results
Open links in new tab
  1. coding style - What are the most common Python docstring …

    The Google style guide contains an excellent Python style guide. It includes conventions for readable docstring syntax that offers better guidance than PEP-257. For example:

  2. What are the main differences between PEP8 and Google Python …

    Mar 10, 2020 · the main difference is that Google Python Style comes with more details about how to write code, for example how to write your docstrings or when to use aliases for a …

  3. Type annotations with google style docstrings - Stack Overflow

    Jan 18, 2021 · References According to the Google Python Style Guide: "The description should include required type (s) if the code does not contain a corresponding type annotation." The …

  4. Python DocString (Google Style): How to document class attributes?

    Jul 21, 2020 · Currently, in the Google Style Docstrings Example, the class ExamplePEP526Class example states If the class has public attributes, they may be …

  5. What is the naming convention in Python for variables and …

    As the Style Guide for Python Code admits, The naming conventions of Python's library are a bit of a mess, so we'll never get this completely consistent Note that this refers just to Python's …

  6. python - Multiple imports according to google style guide - Stack …

    Jun 18, 2017 · Are you asking "Is it OK" according to the Google Python Style Guide, according to Google as a whole, or according to other programmers? My answer focusses on the first two …

  7. What is the common header format of Python files?

    Oct 6, 2009 · It will choose the Python interpreter in the user path, so will automatically choose the user preferred interpreter. The second one is the file encoding. Nowadays every file must …

  8. What is the correct way to document a **kwargs parameter?

    Jul 16, 2009 · Though you asked about sphinx explicitly, I would also point to the Google Python Style Guide. Their docstring example seems to imply that they don't call out kwargs …

  9. python - Why is imperative mood important for docstrings

    Jan 24, 2020 · It is more important to have a consistent style within a project or in a company. The whole idea comes from the PEP-257, which says The docstring is a phrase ending in a period. …

  10. Google Python Style Guide & relative imports - Stack Overflow

    Jan 12, 2022 · Google Python Style Guide says: Do not use relative names in imports. Even if the module is in the same package, use the full package name. This helps prevent unintentionally …