Skip to content

Commit

Permalink
Fix "imported and not used: 'datatypes' [UnusedImport]" warning (#644)
Browse files Browse the repository at this point in the history
The warning is fixed by only importing KnownSupportsCopyMem from datatypes when in nimdoc mode.
  • Loading branch information
AngelEzquerra authored Mar 26, 2024
1 parent ec90c0d commit d6acd3a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import

# This import is needed for our current docgen. Otherwise it fails
# on this submodule.
from ../../tensor/datatypes import KnownSupportsCopyMem
when defined(nimdoc):
from ../../tensor/datatypes import KnownSupportsCopyMem

when defined(i386) or defined(amd64):
import ../../cpuinfo_x86
Expand Down

0 comments on commit d6acd3a

Please sign in to comment.