Browse Source

#3 mypy 周り

main
みてるぞ 3 weeks ago
parent
commit
ed1085535e
4 changed files with 5 additions and 3 deletions
  1. +1
    -1
      config.py
  2. +2
    -2
      models.py
  3. +2
    -0
      mypy.ini
  4. +0
    -0
      py.typed

+ 1
- 1
config.py View File

@@ -3,7 +3,7 @@ from __future__ import annotations
import os
from typing import TypedDict

from eloquent import DatabaseManager, Model # type: ignore
from eloquent import DatabaseManager, Model

CONFIG: dict[str, DbConfig] = { 'mysql': { 'driver': 'mysql',
'host': 'localhost',


+ 2
- 2
models.py View File

@@ -2,9 +2,9 @@ from __future__ import annotations

from datetime import datetime

from eloquent import Model # type: ignore
from eloquent import Model

from config import DB
from .config import DB


class AnsweredFlag (Model):


+ 2
- 0
mypy.ini View File

@@ -0,0 +1,2 @@
[mypy]
disable_error_code = import-untyped

+ 0
- 0
py.typed View File


Loading…
Cancel
Save