blob: 750b1f951b5f47ec5780bf875ccc17d01306d99e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
"""Test linting.
This is only intended to test pylint support for python 3.8's
positional-only arguments (PEP 570).
"""
class Foobar:
"""Class for frobulating the Foobar."""
@classmethod
def buildme(cls, /, value):
"""Construct object using alternate method."""
return cls(value).abc
def runme(self, qrs, /, xyz=None):
"""Do something funcy."""
if self.abc and qrs and xyz:
print("found something else")
abc = 42
|