File: func_noerror_style_members.py

package info (click to toggle)
pylint-django 2.0.13-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 660 kB
  • sloc: python: 1,807; sh: 13; makefile: 5
file content (14 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Test that using `color_style` or `no_style`
# doesn't raise no-member error
#
# pylint: disable=missing-docstring

from django.core.management.color import color_style, no_style


def function():
    style = color_style()
    print(style.SUCCESS("test"))

    style = no_style()
    print(style.SUCCESS("test"))