Hi Matthew, I guess you are using 'intersphinx' feature for a official python documentation then sphinx automatically searched a name 'int' from specified inventory. The official python document has defined the 'int' as a function type, then you got the result as you mentioned.
If you want to disable the 'int' link, you need to disable a part of intersphinx for the python.org. I think there is no way to disable just only 'int'. Regards, -- Takayuki SHIMIZUKAWA http://about.me/shimizukawa 2014-05-03 1:38 GMT+09:00 Matthew Hodgins <[email protected]>: > I'm encountering a strange issue with parameter type links. > >> def foo(x) >> """Function does something >> >> :param x: Some param >> :type x: int >> """ >> print x > > > When this is documented with .. autofunction:: foo, the param is linked to > the Python int() function. This is the generated HTML: > > <li><strong>x</strong> (<a class="reference external" > href="http://docs.python.org/library/functions.html#int" title="(in Python > v2.7)"><em>int</em></a>) – Some param</li> > > > Is there a way to either link it to the primitive type or omit the link > altogether? > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sphinx-users. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.
