From 56a059a68c4e555fbad4ab0210db4517b49a38f2 Mon Sep 17 00:00:00 2001 From: Bhimraj Yadav Date: Mon, 13 Oct 2025 12:14:20 +0000 Subject: [PATCH 1/2] docs: add 'typing.Union' to nitpick_ignore_regex in Sphinx configuration --- docs/source-fabric/conf.py | 1 + docs/source-pytorch/conf.py | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/source-fabric/conf.py b/docs/source-fabric/conf.py index 3dcf7b7083dbe..5d03020004f8f 100644 --- a/docs/source-fabric/conf.py +++ b/docs/source-fabric/conf.py @@ -272,6 +272,7 @@ nitpick_ignore_regex = [ ("py:class", "typing.Self"), + ("py:data", "typing.Union"), # these are not generated with docs API ref ("py:class", "lightning.fabric.utilities.types.Optimizable"), ("py:class", "lightning.fabric.utilities.types.Steppable"), diff --git a/docs/source-pytorch/conf.py b/docs/source-pytorch/conf.py index 8c0c6e49598a1..67736784470b0 100644 --- a/docs/source-pytorch/conf.py +++ b/docs/source-pytorch/conf.py @@ -374,6 +374,7 @@ def _load_py_module(name: str, location: str) -> ModuleType: nitpick_ignore = [ ("py:class", "typing.Self"), + ("py:data", "typing.Union"), # missing in generated API ("py:exc", "MisconfigurationException"), # TODO: generated list of all existing ATM, need to be fixed From b1519b30494b50c9698bb2c0d09ac1f29b104ad4 Mon Sep 17 00:00:00 2001 From: Bhimraj Yadav Date: Mon, 13 Oct 2025 12:45:23 +0000 Subject: [PATCH 2/2] docs: add Supermicro link to linkcheck_ignore due to 403 error --- docs/source-pytorch/conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source-pytorch/conf.py b/docs/source-pytorch/conf.py index 67736784470b0..b2a1749bd202f 100644 --- a/docs/source-pytorch/conf.py +++ b/docs/source-pytorch/conf.py @@ -649,6 +649,7 @@ def package_list_from_file(file): "https://medium.com/pytorch-lightning/quick-contribution-guide-86d977171b3a", "https://deepgenerativemodels.github.io/assets/slides/cs236_lecture11.pdf", "https://developer.habana.ai", # returns 403 error but redirects to intel.com documentation + "https://www.supermicro.com", # returns 403 error "https://www.intel.com/content/www/us/en/products/docs/processors/what-is-a-gpu.html", "https://www.microsoft.com/en-us/research/blog/zero-infinity-and-deepspeed-unlocking-unprecedented-model-scale-for-deep-learning-training/", # noqa: E501 "https://stackoverflow.com/questions/66640705/how-can-i-install-grpcio-on-an-apple-m1-silicon-laptop",