Commit Graph

4 Commits

Author SHA1 Message Date
Claudiu Popa
57125f5490 Use the correct module. 2015-11-20 13:17:32 +02:00
Claudiu Popa
538c30ef91 Import has_known_bases and safe_infer back into pylint from astroid, until the latter stabilizes its API.
Currently astroid goes into a total revamp, having a couple of development branches with partially
incompatible APIs, which means that pylint can't rely on the exact location of has_known_bases
and safe_infer until astroid reaches a new major release. With this in mind, these two
functions are backported in pylint again.
2015-11-20 12:52:19 +02:00
Claudiu Popa
7fdc34f957 Remove line from the license header, which was inadvertently copied from base.py 2015-10-01 13:59:40 +03:00
Claudiu Popa
24e9d35a67 Start adding a protocol checker for the async features added in PEP 492:
* this patch adds the basis of a new checker, 'async', which deals
     with problems that can occur when working with async features added
     in Python with PEP 492.

   * We're also adding a new error, 'yield-inside-async-function', emitted on
     Python 3.5 and upwards when the `yield` statement is found inside
     a new coroutine function (PEP 492).

   * Another new error is added, 'not-async-context-manager', emitted when
     an async context manager block is used with an object which doesn't
     support this protocol (PEP 492).
2015-10-01 13:56:39 +03:00