title: issue run my pyhon script that use pydantic package
body: <p>hi i got issue with this code
  i got a settings class that use a config layout</p>
  <pre><code>
  
  class Settings(BaseSettings):
      appName: str = 'Mini App'
      version: str = '1.0.1'
      description: str = 'Mini Application Mini Shop writing with react/react native'
      debug: bool = True
      prefixAPI: str = 'api'
      host: str = '0.0.0.0'
      port: int = 5700
      secret: str = ''
      workers: int = 1
      database_type: str = 'postgresql'
      database_host: str = '127.0.0.1'
      database_port: int = 5432
      database_name: str = 'miniapp'
      database_user: str = 'postgres'
      database_password: str = 'postgres'
      logs_enable: bool = True
      logs_level: str = 'debug'
      logs_enable_sentry: bool
      logs_sentry_dns: str
      cords_enable: bool = True
      cords_domains: []
      cords_methods: ['GET', 'PUT', 'POST', 'DELETE']
      cords_headers: [&quot;*&quot;]
      meta_pageSizeDef: int = 50
      meta_pageSizes = [10, 20, 30, 50, 100, 200]
  
      class Config:
          env_file: str = '.env'
  
  
  settings = Settings()
  </code></pre>
  <p>now the code that run this called server.py
  is say it is fall on line 5 that code look like this</p>
  <pre><code>import uvicorn
  from fastapi.exceptions import RequestValidationError
  from fastapi.responses import JSONResponse
  from pprint import pprint
  from common.bootstrap import getApplication, loadCordsMiddleware, bindLogs, registerLogger, writeLog, settings
  from middlewares.configMiddleware import registerConfigMiddleware
  from middlewares.databaseMiddleware import registerDatabaseMiddleware
  from middlewares.loggerMiddeware import registerLoggerMiddleware
  from routes.routes import router
  print(&quot;Starting Server&quot;)
  application = getApplication()
  pprint(f&quot;Server Start With Config({vars(settings)})&quot;)
  application = loadCordsMiddleware()
  ....
  .....
  ......
  </code></pre>
  <p>the error it self</p>
  <pre><code>
  (miniApp) D:\Projects\miniApp&gt;python server.py
  Traceback (most recent call last):
    File &quot;pydantic\validators.py&quot;, line 579, in pydantic.validators.find_validators
  TypeError: issubclass() arg 1 must be a class
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;server.py&quot;, line 5, in &lt;module&gt;
      from common.bootstrap import getApplication, loadCordsMiddleware, bindLogs, registerLogger, writeLog, settings
    File &quot;D:\Projects\miniApp\common\bootstrap.py&quot;, line 5, in &lt;module&gt;
      from config.settings import settings
    File &quot;D:\Projects\miniApp\config\settings.py&quot;, line 4, in &lt;module&gt;
      class Settings(BaseSettings):
    File &quot;pydantic\main.py&quot;, line 252, in pydantic.main.ModelMetaclass.__new__
    File &quot;pydantic\fields.py&quot;, line 309, in pydantic.fields.ModelField.infer
    File &quot;pydantic\fields.py&quot;, line 271, in pydantic.fields.ModelField.__init__
    File &quot;pydantic\fields.py&quot;, line 351, in pydantic.fields.ModelField.prepare
    File &quot;pydantic\fields.py&quot;, line 529, in pydantic.fields.ModelField.populate_validators
    File &quot;pydantic\validators.py&quot;, line 588, in find_validators
  RuntimeError: error checking inheritance of [] (type: list)
  </code></pre>
  <p>now i try understand what i did here wrong i using fastapi framework but very new to python and such so i learning as i go btw the code is <a href="https://github.com/wolberg-pro/mini-app-server" rel="nofollow noreferrer">here</a>
  thanks for the help</p>