Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sage.{interacts,misc,repl,typeset}: Update # needs, modularization fixes #36078

Merged
merged 90 commits into from
Aug 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
c7d87d1
src/sage/misc/functional.py: Make some imports lazy
mkoeppe Sep 29, 2021
07d6580
src/sage/misc/functional.py: Break an import cycle
mkoeppe Oct 3, 2021
eedb16f
src/sage/misc/functional.py: More lazy_import
mkoeppe Oct 6, 2021
3a3dbb2
src/sage/misc: More # optional
mkoeppe Feb 20, 2023
9f68b7c
src/sage/misc: More # optional
mkoeppe Feb 23, 2023
547ee7b
sage.repl: Add more # optional
mkoeppe Feb 24, 2023
e26150d
src/sage/misc/sageinspect.py: More # optional
mkoeppe Feb 26, 2023
b63ec98
src/sage/repl/ipython_kernel/interact.py: Move import into method
mkoeppe Mar 1, 2023
64f9dcc
sage.misc: More # optional
mkoeppe Mar 2, 2023
8d49dbf
sage.repl: More # optional
mkoeppe Mar 2, 2023
0ede767
sage.misc: More # optional
mkoeppe Mar 3, 2023
36c9639
sage.misc: More # optional (fixup)
mkoeppe Mar 4, 2023
81d3bcb
sage.misc: More # optional
mkoeppe Mar 4, 2023
5ce8f2d
src/sage/misc/c3_controlled.pyx: Do not fail when Posets, Digraph can…
mkoeppe Mar 4, 2023
5808ea2
sage.misc: More # optional
mkoeppe Mar 4, 2023
3a2bb8d
sage.misc: More # optional
mkoeppe Mar 5, 2023
fc68a42
sage.misc: More # optional
mkoeppe Mar 5, 2023
6ae40e9
sage.repl: Add # optional - pexpect
mkoeppe Mar 6, 2023
aae3c73
sage.misc: More # optional
mkoeppe Mar 7, 2023
f6813d9
sage.misc: More # optional
mkoeppe Mar 8, 2023
36dd393
sage.repl: More # optional
mkoeppe Mar 8, 2023
8690f28
sage.misc: More # optional
mkoeppe Mar 8, 2023
6f83d81
More # optional
mkoeppe Mar 8, 2023
9cf7bd8
In # optional, no commas between tags
mkoeppe Mar 8, 2023
3a7d61f
src/sage/misc/table.py: Remove hard dependency on sage.plot
mkoeppe Mar 9, 2023
6a98634
src/sage/misc/fast_methods.pyx: Avoid use of .all in doctest
mkoeppe Mar 9, 2023
c9199ce
sage.repl: More # optional
mkoeppe Mar 9, 2023
6fd1631
More # optional
mkoeppe Mar 9, 2023
b946e8c
sage.misc: More # optional
mkoeppe Mar 12, 2023
438f928
sage.repl: More # optional
mkoeppe Mar 12, 2023
a84fc77
sage.misc: More # optional
mkoeppe Mar 12, 2023
83d55ef
sage.misc: More # optional
mkoeppe Mar 13, 2023
5146023
sage.misc: More # optional
mkoeppe Mar 13, 2023
7c7af63
sage.categories.rings, sage.misc.cachefunc, sage.rings: Add # optiona…
mkoeppe Mar 16, 2023
908c9ec
sage.misc: More # optional
mkoeppe Mar 18, 2023
35f014d
Add more # optional
mkoeppe Apr 25, 2023
dfa2796
sage.{geometry,matrix,modules,repl,sets}: More # optional
mkoeppe Apr 28, 2023
123f1a7
More optional
mkoeppe Apr 28, 2023
f69b974
Doctest cosmetics
mkoeppe May 1, 2023
a123182
Fix # optional
mkoeppe May 13, 2023
ec52b9b
src/sage/repl/ipython_kernel/widgets.py: Fixup
mkoeppe May 13, 2023
4e64d7e
Fix # optional
mkoeppe May 13, 2023
6dc7e4b
Add # optional
mkoeppe May 14, 2023
bead35a
sage.misc: Add # optional, do not rely on predefined x in doctests
mkoeppe May 15, 2023
c46d3dd
Massive modularization fixes
mkoeppe May 17, 2023
beebaab
sage.functions: More modularization fixes
mkoeppe May 20, 2023
c6e8818
More # optional
mkoeppe May 20, 2023
581c447
Fixups
mkoeppe May 21, 2023
dde0b81
src/sage/misc/rest_index_of_methods.py: Skip unresolvable lazy imports
mkoeppe May 26, 2023
73db008
Add # optional
mkoeppe Jun 2, 2023
ad9f2e0
src/sage/misc/sage_input.py: Use lazy_import
mkoeppe Jun 4, 2023
375e104
More # optional
mkoeppe Jun 4, 2023
b2e92cf
More # optional - sage.schemes sage.modular
mkoeppe Jun 5, 2023
7f11d25
More # optional
mkoeppe Jun 9, 2023
81a3c92
More # optional
mkoeppe Aug 13, 2023
baf416f
More # optional
mkoeppe Jun 11, 2023
70faa0f
More # optional
mkoeppe Jun 11, 2023
a8d8f2b
More # optional
mkoeppe Jun 15, 2023
105577a
More # optional
mkoeppe Jun 15, 2023
98b5f78
More # optional
mkoeppe Jun 18, 2023
ff60dec
More # optional
mkoeppe Jun 20, 2023
5d98846
More # optional
mkoeppe Jun 26, 2023
cb46a04
sage.misc: ./sage -fixdoctests --long --distribution 'sagemath-graphs…
mkoeppe Jun 28, 2023
8c0fd2c
src/sage/misc/functional.py: Remove workaround for import cycle
mkoeppe Jun 30, 2023
17ee323
sage.misc: Update # optional / # needs
mkoeppe Jul 2, 2023
0b3702f
src/sage/misc/rest_index_of_methods.py: pycodestyle fix
mkoeppe Jul 4, 2023
8e85440
src/sage/misc/c3_controlled.pyx: Update # needs
mkoeppe Jul 4, 2023
170b29f
./sage -fixdoctests --distribution sagemath-categories --only-tags --…
mkoeppe Jul 13, 2023
64577d6
Update # needs
mkoeppe Jul 13, 2023
0217fbd
src/sage/misc/fpickle.pyx: Import fix for modularization
mkoeppe Jul 14, 2023
3f30e4d
sage.misc: Update # needs
mkoeppe Jul 14, 2023
f70d751
sage.repl: Update # needs
mkoeppe Jul 14, 2023
a2f58f4
sage.misc: Update # needs
mkoeppe Jul 16, 2023
5e35617
Update # needs
mkoeppe Jul 16, 2023
ac6b955
Update # needs
mkoeppe Aug 7, 2023
2ea7108
src/sage/misc: sage -fixdoctests --only-tags
mkoeppe Aug 8, 2023
22a2f5d
src/sage/repl: sage -fixdoctests --only-tags
mkoeppe Aug 8, 2023
96d873a
src/sage/typeset: sage -fixdoctests --only-tags
mkoeppe Aug 8, 2023
ba9d246
src/sage/interacts: sage -fixdoctests --only-tags
mkoeppe Aug 8, 2023
0acb7c0
Use more block tags
mkoeppe Aug 12, 2023
7fa775d
sage -fixdoctests --distribution sagemath-graphs --only-tags --probe …
mkoeppe Aug 12, 2023
19cb5b2
Update file-level doctest tags
mkoeppe Aug 12, 2023
6bda343
src/sage/misc/sagedoc.py: Fix self-referential doctest
mkoeppe Aug 12, 2023
819967a
src/sage/misc/package.py: Restore lost '# random'
mkoeppe Aug 12, 2023
ccc9dcb
Fix 'variable only defined' doctest warnings
mkoeppe Aug 12, 2023
27173b5
src/sage/misc/functional.py: Docstring cosmetics
mkoeppe Aug 13, 2023
f487209
src/sage/misc/reset.pyx: Docstring cosmetics
mkoeppe Aug 13, 2023
e4a7924
src/sage/misc/rest_index_of_methods.py: Codestyle fix
mkoeppe Aug 13, 2023
e05c608
src/sage/misc/sageinspect.py: Docstring/doctest fixes
mkoeppe Aug 13, 2023
bd0fdd5
src/sage/misc/table.py: Fix # needs alignment
mkoeppe Aug 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/sage/groups/abelian_gps/dual_abelian_group_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def is_DualAbelianGroupElement(x) -> bool:
EXAMPLES::

sage: from sage.groups.abelian_gps.dual_abelian_group import is_DualAbelianGroupElement
sage: F = AbelianGroup(5,[5,5,7,8,9],names = list("abcde")).dual_group()
sage: F = AbelianGroup(5, [5,5,7,8,9], names=list("abcde")).dual_group()
sage: is_DualAbelianGroupElement(F)
False
sage: is_DualAbelianGroupElement(F.an_element())
Expand Down Expand Up @@ -146,7 +146,7 @@ def word_problem(self, words):

EXAMPLES::

sage: G = AbelianGroup(5,[3, 5, 5, 7, 8],names="abcde")
sage: G = AbelianGroup(5,[3, 5, 5, 7, 8], names="abcde")
sage: Gd = G.dual_group(names="abcde")
sage: a,b,c,d,e = Gd.gens()
sage: u = a^3*b*c*d^2*e^5
Expand Down
2 changes: 2 additions & 0 deletions src/sage/interacts/library_cython.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ cpdef julia(ff_j, z, int iterations):

TESTS::

sage: # needs sage.symbolic
sage: from sage.interacts.library_cython import julia
sage: z = var('z')
sage: c_real, c_imag = 1, 1
Expand Down Expand Up @@ -55,6 +56,7 @@ cpdef mandel(ff_m, z, int iterations):

TESTS::

sage: # needs sage.symbolic
sage: from sage.interacts.library_cython import mandel
sage: z, c = var('z, c')
sage: f = symbolic_expression(z**2 + c).function(z,c)
Expand Down
6 changes: 3 additions & 3 deletions src/sage/misc/binary_tree.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ cdef class BinaryTree:

sage: from sage.misc.binary_tree import BinaryTree
sage: t = BinaryTree()
sage: t.insert(0,Matrix([[0,0],[1,1]]))
sage: t.insert(0,1)
sage: t.get(0)
sage: t.insert(0, Matrix([[0,0], [1,1]])) # needs sage.modules
sage: t.insert(0, 1)
sage: t.get(0) # needs sage.modules
[0 0]
[1 1]
"""
Expand Down
8 changes: 4 additions & 4 deletions src/sage/misc/bindable_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,22 +175,22 @@ class BoundClass(functools.partial):

.. warning::

Since ``c`` is not a class (as tested by inspect.isclass),
Since ``c`` is not a class (as tested by :func:`inspect.isclass`),
and has a ``__call__`` method, IPython's introspection
(with ``c?``) insists on showing not only its
documentation but also its class documentation and call
documentation (see :meth:`IPython.OInspect.Inspector.pdoc`)
if available.

Until a better approach is found, we reset the documentation
of ``BoundClass`` below, and make an exception for
of :class:`BoundClass` below, and make an exception for
:meth:`__init__` to the strict rule that every method should
be doctested::

sage: c.__class__.__doc__
sage: c.__class__.__init__.__doc__

Make sure classes which inherit from functools.partial have the correct
Make sure classes which inherit from :class:`functools.partial` have the correct
syntax, see :trac:`14748`::

sage: import warnings
Expand All @@ -201,7 +201,7 @@ class BoundClass(functools.partial):
sage: g()
8

The following has correct syntax and no ``DeprecationWarning``::
The following has correct syntax and no :class:`DeprecationWarning`::

sage: class mynewpartial(functools.partial):
....: def __init__(self, f, i, j):
Expand Down
Loading
Loading