title: I am building an fastapi application error "Unable to determine database type from python tuple type"
body: <p>I am using pycharm and sqlalchemy to connect to the database
  The error shown is as follows
  &quot;Unable to determine database type from python tuple type&quot;</p>
  <p>db.py file</p>
  <pre><code>import sqlalchemy
  
  
  user_name = ''
  password = ''
  server = ''
  db_name = 
  DATABASE_URL = f&quot;mssql+pymssql://{user_name}:{password}@{server}/{db_name}&quot;
  engine = sqlalchemy.create_engine(DATABASE_URL)
  
  
  
  
  rom .route import account
  from ...shared.db import engine
  
  
  @account.post(&quot;/login&quot;)
  async def login(email: str, password: str):
      try:
          mode: str = &quot;LOGIN&quot;,
          userid: int = 0,
          loginip: str = &quot; &quot;,
          loginbrowser: str = &quot;&quot;
          connection = engine.raw_connection()
          cursor = connection.cursor()
          cursor.callproc('SP_Login', (mode, email, password, loginip, loginbrowser, userid))
          # result = []
          for row in cursor:
              print(row)
              break
          return row
          connection.commit()
          # print(result)
  
  </code></pre>
  <pre><code>except Exception as e:
      print(e)
  </code></pre>