-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat(types): Allow setting types for attributes #5460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
aa74fbe
init
InvincibleRMC 4c263c1
add comment
InvincibleRMC 4788d8c
style: pre-commit fixes
pre-commit-ci[bot] bc8f095
fix extra ;
InvincibleRMC c38836a
Add annotation helper for older python versions
InvincibleRMC 9e43986
style: pre-commit fixes
pre-commit-ci[bot] 9f34dcc
test writing __annotations__ to __dict__
InvincibleRMC 10d7b05
style: pre-commit fixes
pre-commit-ci[bot] 6dff59f
revert bac to __annotations__
InvincibleRMC c8edd09
use getattr for automatic init
InvincibleRMC 259ce93
use std::move
InvincibleRMC 7e380e2
update helper
InvincibleRMC b8ad03d
remove stdmove
InvincibleRMC e5235f0
test isinstance
InvincibleRMC 639b192
style: pre-commit fixes
pre-commit-ci[bot] 8da0ce0
add #if 3.9
InvincibleRMC 886c9c2
merge
InvincibleRMC 31cc64f
style: pre-commit fixes
pre-commit-ci[bot] 4d0968d
use getattr
InvincibleRMC e84df95
add dir
InvincibleRMC d660177
use hasattr
InvincibleRMC fe21e0f
try setattr
InvincibleRMC 4a443a7
add c++17 guard
InvincibleRMC 008c370
style: pre-commit fixes
pre-commit-ci[bot] b318d02
add compile guard
InvincibleRMC a53bf0e
style: pre-commit fixes
pre-commit-ci[bot] adfed51
cleanup
InvincibleRMC 9160cb1
comments and function name cleanup
InvincibleRMC 1571d52
Merge remote-tracking branch 'origin/master' into attribute-types
InvincibleRMC 07f8613
style: pre-commit fixes
pre-commit-ci[bot] 14d2dda
update test case
InvincibleRMC 881b356
style: pre-commit fixes
pre-commit-ci[bot] 731745a
add write
InvincibleRMC 048b539
Merge branch 'master' into attribute-types
InvincibleRMC 890fcae
added instance check
InvincibleRMC 28d2a66
style: pre-commit fixes
pre-commit-ci[bot] 3cbaafd
Test for `__cpp_inline_variables` and use `static_assert()`
rwgk 58e5a09
Add guard: __annotations__["list_int"] was set already.
rwgk 882d20f
Avoid explicit `false` in `static_assert()`.
rwgk b296137
add redeclaration test
InvincibleRMC 981e0a3
style: pre-commit fixes
pre-commit-ci[bot] 7f7b70b
add handle support to attr_with_type_hint
InvincibleRMC 19e033c
store reintpreted_key
InvincibleRMC 375ea30
style: pre-commit fixes
pre-commit-ci[bot] 9f532cf
fix str namespace
InvincibleRMC 8b241f1
fix scope?
InvincibleRMC f205bb4
string wrap
InvincibleRMC a6ffbe3
clang tidy
InvincibleRMC cd4f771
Swap order of attr_with_type_hint implementation in cast.h (so that t…
rwgk 08d4774
Reuse `const char *` overload from `handle` overload.
rwgk 1582971
Added comment
InvincibleRMC fe04344
style: pre-commit fixes
pre-commit-ci[bot] 988c039
line up comment
InvincibleRMC 2241892
fixed spelling error
InvincibleRMC 4be50fe
Add missing period
InvincibleRMC 8f87e21
Introduce `detail::always_false<>` to make the new `static_assert()` …
rwgk e6b1370
Copy `attr` comment for `const char *` overload, for consistency.
rwgk 999b668
static_assert(std::false_type::value, ...)
rwgk 9d46b4d
Revert "static_assert(std::false_type::value, ...)"
rwgk 921657a
Add comment for `always_false`
rwgk e1e2c9a
add test for inspect.get_annotations()
InvincibleRMC 2774a8d
style: pre-commit fixes
pre-commit-ci[bot] 6a6bff8
Merge branch 'master' into attribute-types
InvincibleRMC File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
remove stdmove
- Loading branch information
commit b8ad03da76ea64e9fc37ff1ff399f486f2484ad1
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.