Hi,

Sorry for late response.

I think that might be related with this change.
https://github.com/sphinx-doc/sphinx/compare/sphinx-doc:16533cf...sphinx-doc:65a560f#diff-48ca4d6544b092f35d729127500bff5fR1058

BTW, How are eg.TriggerEvent and eg.PrintError implemented? Isn't it a
python function?
Anyway, I feel this is a bug of Sphinx. So please post an issue to
github. I'll take a look later.

Thanks,
Takeshi KOMIYA

2019年1月14日(月) 3:27 'topic2k' via sphinx-users <[email protected]>:
>
> Hello everyone,
>
> for a project (EventGhost) i'm trying to update sphinx from 1.7.5 to 1.8.3, 
> but after the update the building of the docs print some warnings:
>
> WARNING: error while formatting arguments for eg.TriggerEvent: 'function' 
> object has no attribute '__bases__'
> WARNING: error while formatting arguments for eg.PrintError: 'function' 
> object has no attribute '__bases__'
>
>
> After some tests i found out that some code changes in sphinx 1.8.1 lead to 
> these warnings. Sphinx 1.8.0 don't give those warnings.
>
> With some trial and error i got building the docs (with sphinx 1.8.1+) if i 
> change the following in sphinx.util.inspect:
>
> def isfunction(obj):
>     # type: (Any) -> bool
>     """Check if the object is function."""
>     return inspect.isfunction(obj) or ispartial(obj) and 
> inspect.isfunction(obj.func)
>
>
> to:
>
> def isfunction(obj):
>     # type: (Any) -> bool
>     """Check if the object is function."""
>     return inspect.isroutine(obj) or ispartial(obj) and 
> inspect.isroutine(obj.func)
>
>
> But those lines were not changed in sphinx 1.8.1, so i guess there must be 
> another reason for the warnings.
> Can someone shed some light on why i get these warnings?
>
>
> TIA,
> Torsten
>
> --
> 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 https://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 https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to