docs/comments: fix typo with wildcard import (#50379)

This commit is contained in:
Harmen Stoppels 2025-05-08 18:37:45 +02:00 committed by GitHub
parent 6f2393a345
commit a95fa26857
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -497,7 +497,7 @@ extends Spack's ``Package`` class. For example, here is
.. code-block:: python .. code-block:: python
:linenos: :linenos:
from spack import * from spack.package import *
class Libelf(Package): class Libelf(Package):
""" ... description ... """ """ ... description ... """
@ -1089,7 +1089,7 @@ You've already seen the ``homepage`` and ``url`` package attributes:
.. code-block:: python .. code-block:: python
:linenos: :linenos:
from spack import * from spack.package import *
class Mpich(Package): class Mpich(Package):
@ -6183,7 +6183,7 @@ running:
.. code-block:: python .. code-block:: python
from spack import * from spack.package import *
This is already part of the boilerplate for packages created with This is already part of the boilerplate for packages created with
``spack create``. ``spack create``.

View File

@ -56,7 +56,7 @@ def is_package(f):
"""Whether flake8 should consider a file as a core file or a package. """Whether flake8 should consider a file as a core file or a package.
We run flake8 with different exceptions for the core and for We run flake8 with different exceptions for the core and for
packages, since we allow `from spack import *` and poking globals packages, since we allow `from spack.package import *` and poking globals
into packages. into packages.
""" """
return f.startswith("var/spack/") and f.endswith("package.py") return f.startswith("var/spack/") and f.endswith("package.py")