-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-101860: Expose __name__ on property #101876
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
Conversation
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
05db108
to
9c956c7
Compare
@eltoder, there are a lot of conflicts now. Could you please update the branch? |
Useful for introspection and consistent with functions and other descriptors.
9c956c7
to
8ec1251
Compare
@serhiy-storchaka Done |
Thank you. I knew I could count on you. |
@serhiy-storchaka I made |
Raise AttributeError if no fget or it doesn't have `__name__`.
732337d
to
c20e9a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. And I like to to review more of your PRs.
Thank you! |
Useful for introspection and consistent with functions and other descriptors.
Useful for introspection and consistent with functions and other descriptors.
Useful for introspection and consistent with functions and other descriptors.
Following where `__name__` used to be sourced from - python/cpython#101876
* chore(typing): fix `check_docstrings` `Path` warning `pyright` did a good job spotting that one * chore: Use `dir(...)` instead of `.__dir__()` Fixes 2/6 errors and shrinks the script * chore(typing): Fix 2 more errors These have been popping up and bugging me for 2 weeks 🙈 #2351 (comment) * chore(typing): Fix the last 2 as well * chore: Simplify the rest * chore(typing): Ignore remaining in `utils` * chore(typing): Ignore everything in `tpch` These are all the same issue, can be fixed with a constrained `TypeVar` * fix: pre-`3.13` compat? Following where `__name__` used to be sourced from - python/cpython#101876 * chore(typing): Fix some of the new `tpch` ignores The rest seem pretty unavoidable * fix: don't clobber `typing` 🤦♂️ https://github.com/narwhals-dev/narwhals/actions/runs/14624570842/job/41032838053?pr=2426
Useful for introspection and consistent with functions and other descriptors.
__name__
to property #101860