Skip to content

Commit 433ee28

Browse files
committed
revert docs change
2 parents 6170a48 + 4c0de25 commit 433ee28

File tree

3 files changed

+2
-43
lines changed

3 files changed

+2
-43
lines changed

docs/conf.py

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -358,47 +358,6 @@
358358
# texinfo_no_detailmenu = False
359359

360360

361-
# -- Options for autodoc --------------------------------------------------
362-
363-
364-
def autodoc_skip_member_handler(app, what, name, obj, skip, options):
365-
"""
366-
Skips members from internal modules (like _cryptography_rsa or base)
367-
if they are publicly exposed via a higher-level package (like google.auth.crypt),
368-
to avoid duplicate documentation entries and ambiguous cross-references.
369-
"""
370-
# Handle RSASigner and RSAVerifier from _cryptography_rsa
371-
if name in ("RSASigner", "RSAVerifier") and hasattr(obj, "__module__"):
372-
if obj.__module__ == "google.auth.crypt._cryptography_rsa":
373-
# Check if it's also available via the public google.auth.crypt path
374-
try:
375-
import google.auth.crypt
376-
377-
public_obj = getattr(google.auth.crypt, name, None)
378-
if public_obj is obj:
379-
return True # Skip this internal one
380-
except ImportError:
381-
pass # Should not happen if the library is installed
382-
383-
# Handle Signer and Verifier from base
384-
elif name in ("Signer", "Verifier") and hasattr(obj, "__module__"):
385-
if obj.__module__ == "google.auth.crypt.base":
386-
# Check if it's also available via the public google.auth.crypt path
387-
try:
388-
import google.auth.crypt
389-
390-
public_obj = getattr(google.auth.crypt, name, None)
391-
if public_obj is obj:
392-
return True # Skip this internal one
393-
except ImportError:
394-
pass # Should not happen if the library is installed
395-
return None # Default behavior (don't skip)
396-
397-
398-
def setup(app):
399-
app.connect("autodoc-skip-member", autodoc_skip_member_handler)
400-
401-
402361
# Example configuration for intersphinx: refer to the Python standard library.
403362
intersphinx_mapping = {
404363
"python": ("https://docs.python.org/3.5", None),

google/auth/crypt/_cryptography_rsa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def from_string(cls, public_key):
6666
x509 public key certificate.
6767
6868
Returns:
69-
Verifier: The constructed verifier.
69+
google.auth.crypt.base.Verifier: The constructed verifier.
7070
7171
Raises:
7272
ValueError: If the public key can't be parsed.

google/auth/crypt/es256.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def from_string(cls, public_key):
8282
x509 public key certificate.
8383
8484
Returns:
85-
Verifier: The constructed verifier.
85+
google.auth.crypt.base.Verifier: The constructed verifier.
8686
8787
Raises:
8888
ValueError: If the public key can't be parsed.

0 commit comments

Comments
 (0)