Skip to content

Commit b6ffd0f

Browse files
Apply suggestions from code review
1 parent c57818e commit b6ffd0f

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

pylint_django/tests/functional/external/external_psycopg2_noerror_postgres_fields.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Checks that Pylint does not complain Postgres model fields.
33
"""
44
# pylint: disable=C0111,W5101
5+
from __future__ import print_function
56

67
from django.contrib.postgres import fields
78
from django.db import models

pylint_django/tests/functional/external/external_psycopg3_noerror_postgres_fields.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Checks that Pylint does not complain Postgres model fields.
33
"""
44
# pylint: disable=C0111,W5101
5+
from __future__ import print_function
56

67
from django.contrib.postgres import fields
78
from django.db import models

pylint_django/tests/functional/field/field_uuid.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Checks that Pylint does not complain about UUID fields.
33
"""
44
# pylint: disable=missing-class-docstring,missing-function-docstring
5+
from __future__ import print_function
56

67
from django.db import models
78

pylint_django/tests/functional/form/form_fields.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
methods on Django form forms.
44
"""
55
# pylint: disable=missing-docstring
6+
from __future__ import print_function
67

78
from datetime import date, datetime
89

pylint_django/tests/functional/hard_coded/hard_coded_auth_user.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# flake8: noqa=F401, F403
33

44
from django.contrib.auth.models import * # [imported-auth-user]
5+
from django.contrib.auth.models import User # [imported-auth-user]
56
from django.db import models
67

78

pylint_django/tests/functional/model/model_fields.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
methods on Django model fields.
44
"""
55
# pylint: disable=missing-docstring
6+
from __future__ import print_function
67

78
from datetime import date, datetime
89
from decimal import Decimal

pylint_django/tests/functional/protected/protected_meta_access.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
and https://docs.djangoproject.com/en/1.9/ref/models/meta/)
77
"""
88
# pylint: disable=missing-docstring
9+
from __future__ import print_function
910

1011
from django.db import models
1112

0 commit comments

Comments
 (0)