Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d29eab8
add tests
BobTheBuidler Aug 4, 2025
d043cda
_weakref stubs
BobTheBuidler Aug 4, 2025
81760b2
weakref stubs
BobTheBuidler Aug 4, 2025
e790625
feat: new primitive for weakref.ref
BobTheBuidler Aug 4, 2025
1bcc358
feat(test): test ir
BobTheBuidler Aug 4, 2025
996987c
fix: steal maybe
BobTheBuidler Aug 4, 2025
3bcada6
feat(test): split up run tests
BobTheBuidler Aug 4, 2025
9d6c52c
Update weakref_ops.py
BobTheBuidler Aug 4, 2025
1c96658
finalize PR
BobTheBuidler Aug 4, 2025
652de32
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 4, 2025
28129f3
Merge branch 'master' into weak-proxy
BobTheBuidler Aug 6, 2025
c58f827
Merge branch 'master' into weak-proxy
BobTheBuidler Aug 10, 2025
5f13dbf
Merge branch 'master' into weak-proxy
BobTheBuidler Aug 13, 2025
d6b8d6b
Merge branch 'master' into weak-proxy
BobTheBuidler Aug 14, 2025
23d89a2
rip out pytest.raises
BobTheBuidler Aug 17, 2025
c4f596e
rip out driver.py
BobTheBuidler Aug 17, 2025
fe03dd6
combine run tests
BobTheBuidler Aug 17, 2025
2667ae8
test callback is called
BobTheBuidler Aug 17, 2025
4d39829
Update run-weakref.test
BobTheBuidler Aug 17, 2025
54cbf90
Merge branch 'master' into weak-proxy
BobTheBuidler Aug 18, 2025
78694f3
Update run-weakref.test
BobTheBuidler Aug 18, 2025
5c9cab5
Update run-weakref.test
BobTheBuidler Aug 18, 2025
92a1f8a
Merge branch 'master' into weak-proxy
BobTheBuidler Aug 27, 2025
da8e23a
remove test-weakref.pyi
BobTheBuidler Aug 29, 2025
9fa4a16
Merge branch 'weak-proxy' of https://github.com/BobTheBuidler/mypy in…
BobTheBuidler Aug 29, 2025
05513a8
add type annotations
BobTheBuidler Sep 2, 2025
fd7632c
add `ReferenceType.__call__` to stubs
BobTheBuidler Sep 4, 2025
5eaaefe
Merge branch 'master' into weak-proxy
BobTheBuidler Sep 4, 2025
fb9e02d
fix mypy errs
BobTheBuidler Sep 4, 2025
8f5bf72
disable error code union-attr
BobTheBuidler Sep 4, 2025
5563d05
fix: use Optional instead of |
BobTheBuidler Sep 4, 2025
796d5ce
fix stubs
BobTheBuidler Sep 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add ReferenceType.__call__ to stubs
  • Loading branch information
BobTheBuidler authored Sep 4, 2025
commit fd7632c6ea81bcbf9e3c61b268ddfe0b8bd173c9
1 change: 1 addition & 0 deletions test-data/unit/lib-stub/weakref.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ _T = TypeVar("_T")
class ReferenceType(Generic[_T]): # "weakref"
__callback__: Callable[[Self], Any]
def __new__(cls, o: _T, callback: Callable[[Self], Any] | None = ..., /) -> Self: ...
def __call__(self) -> _T | None: ...

ref = ReferenceType

Expand Down
Loading