About 268,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 · When using google style docstrings and type annotations there's a double up of the type hints. Is there any community consensus on how to avoid this? Annoying double up of …

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

    Jul 21, 2020 · Assuming you would like to use napoleon to render your docstrings into docs, the sphinx developers are working towards a way to add custom sections to class-level docstrings …

  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 · On the other hand, the Python Style Guidelines for The Chromium Projects, which is obviously also by Google, says It is OK to import packages, modules, and things within a …

  7. coding style - What's the correct way to sort Python `import x` and ...

    Dec 24, 2013 · The python style guide suggests to group imports like this: Imports should be grouped in the following order: standard library imports related third party imports local …

  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. 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 …

  10. 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 …