File: migrations.py

package info (click to toggle)
python-django-test-migrations 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 436 kB
  • sloc: python: 1,479; makefile: 26
file content (9 lines) | stat: -rw-r--r-- 256 bytes parent folder | download
1
2
3
4
5
6
7
8
9
import typing

if typing.TYPE_CHECKING:
    from main_app.models import SomeItem


def is_clean_item(instance: 'SomeItem') -> bool:
    """Pure function that decides whether or not whitespace is in the model."""
    return ' ' not in instance.string_field