Skip to content

Commit 2c92b81

Browse files
committed
WIP: attrs_plugin
1 parent a4aefd9 commit 2c92b81

File tree

4 files changed

+15
-150
lines changed

4 files changed

+15
-150
lines changed

attr.pyi

Lines changed: 0 additions & 83 deletions
This file was deleted.

foo.py

Lines changed: 0 additions & 65 deletions
This file was deleted.

test-data/unit/fixtures/attr.pyi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from typing import TypeVar, overload, Callable
2+
3+
_T = TypeVar('_T')
4+
5+
def attr(default: _T = ..., validator = ...) -> _T: ...
6+
7+
@overload
8+
def attributes(maybe_cls: _T = ..., cmp: bool = ..., init: bool = ...) -> _T: ...
9+
10+
@overload
11+
def attributes(maybe_cls: None = ..., cmp: bool = ..., init: bool = ...) -> Callable[[_T], _T]: ...
12+
13+
# aliases
14+
s = attrs = attributes
15+
ib = attrib = attr

test-data/unit/fixtures/bool.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@ class bool: pass
1212
class int: pass
1313
class str: pass
1414
class unicode: pass
15-
class ellipsis: pass
16-

0 commit comments

Comments
 (0)