Skip to content

Commit 4924845

Browse files
committed
maint(fix): Add deprecation warning for accidental imports
This commit clarifies the comments about what will or will not be importable in future.
1 parent 858a968 commit 4924845

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

sympy/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ def __sympy_debug():
506506
#
507507
# This happened implicitly because there was no __all__ defined in this
508508
# __init__.py file. Not every package is imported. The list matches what
509-
# would have been imported before.
509+
# would have been imported before. It is possible that these packages will
510+
# not be imported by a star-import from sympy in future.
510511
#
511512
#=======================================================================
512513

@@ -527,7 +528,6 @@ def __sympy_debug():
527528
'multipledispatch',
528529
'ntheory',
529530
'parsing',
530-
# 'physics',
531531
'plotting',
532532
'polys',
533533
'printing',
@@ -540,13 +540,15 @@ def __sympy_debug():
540540

541541
#=======================================================================
542542
#
543-
# XXX: The names below were importable before sympy 1.6 using
543+
# XXX: The names listed in _DEPREACTED_IMPORTS below were importable before
544+
# sympy 1.6 using
544545
#
545546
# from sympy import *
546547
#
547548
# This happened implicitly because there was no __all__ defined in this
548549
# __init__.py file. The plan is to remove them but for now they remain
549-
# importable but will give a deprecation warning when used.
550+
# importable but will give a deprecation warning when used. In future these
551+
# names will be removed and will not be importable from here.
550552
#
551553
#=======================================================================
552554

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy