mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #3556 from rayl/nitpicky-5a7eb99e4
Fix possible bug in commit 5a7eb99e4
This commit is contained in:
commit
b7cada236f
@ -119,13 +119,13 @@ class ReferencesResolver(SphinxTransform):
|
||||
warn = node.get('refwarn')
|
||||
if self.config.nitpicky:
|
||||
warn = True
|
||||
if self._nitpick_ignore:
|
||||
if self.env._nitpick_ignore:
|
||||
dtype = domain and '%s:%s' % (domain.name, typ) or typ
|
||||
if (dtype, target) in self._nitpick_ignore:
|
||||
if (dtype, target) in self.env._nitpick_ignore:
|
||||
warn = False
|
||||
# for "std" types also try without domain name
|
||||
if (not domain or domain.name == 'std') and \
|
||||
(typ, target) in self._nitpick_ignore:
|
||||
(typ, target) in self.env._nitpick_ignore:
|
||||
warn = False
|
||||
if not warn:
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user