I only saw the error fixing typehint in the documentation, I don't know how 
to configure it. But I got an error when I ran sphinx-build -b html source 
build.
somebody can help?
(ps:My English is not good, please forgive me.)
code:


def __init__(self, host: str, port: int, user: str, password: str, database: 
str):
    self.host = host
    self.port = port
    self.user = user
    self.database = database
    self._password = password
    self._db_conn = None
    self._cursor = None
    self.connect()



WARNING:

WARNING: autodoc: failed to import module u'db' from module u'app.libs'; 
the following exception was raised:
Traceback (most recent call last):
  File 
"/usr/local/lib/python2.7/site-packages/sphinx/ext/autodoc/importer.py", 
line 154, in import_module
    __import__(modname)
  File "/Users/luguohua/Library/Mobile 
Documents/com~apple~CloudDocs/WorkSpace/Work/makemoney_admin_flask/app/libs/db.py",
 
line 23
    def __init__(self, host: str, port: int, user: str, password: str, 
database: str):
                           ^
SyntaxError: invalid syntax

-- 
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