ENH: return current class name in deprecate_nonkeyword_arguments

This issue has been created since 2022-09-20.
class A:
    @deprecate_nonkeyword_arguments(version=None, allowed_args=["self"])
    def method(self, deprecated_positional=None): ...

class B(A): ...

B().method(1)  # will warn about `A.method`

Might be nice to warn about B.method #48592 (comment)

Could probably use something like args[0].__class__.__name__ inside the decorator but that assumes that the decorated object is a method and not a function.

More Details About Repo
Owner Name pandas-dev
Repo Name pandas
Full Name pandas-dev/pandas
Language Python
Created Date 2010-08-24
Updated Date 2022-09-29
Star Count 35374
Watcher Count 1122
Fork Count 15034
Issue Count 3579

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
ImportError: cannot import name 'get_world_size' 3 2021-03-01 2022-08-09
foreign key values not filled 2 2022-01-28 2022-04-16
Show foreign table NAME instead of ID on grid view 1 2022-03-15 2022-04-16
Booleans don't work? (was: Entities not updated) 14 2022-01-12 2022-04-16
Foreign Key Navigation 1 2022-02-20 2022-07-31
Host a demo on Microsoft Azure free tier 3 2021-12-28 2022-04-16
[email protected] 中 keepalive 遗失运行时配置 getKeepAlive 0 2022-07-29 2022-09-18
关于tabsLayout后期会新增一些附加功能不? 1 2022-07-14 2022-09-18
Allow RedirectFrom to exit when the command exits even if the source stream is not exhausted 9 2019-03-26 2022-08-01
extend 里 的 display 表达式应该是 flex 但是返回了 none 2 2022-07-20 2022-09-21
Strange behavior of the spark24 version 4 2021-12-09 2022-08-30
Could not handle BIGNUMERICs while writing 7 2021-12-06 2022-08-23
Bug: vue-tsc throwing errors looking for Vue Test Utils types/modules in my custom types file 6 2022-01-23 2022-09-25
rsync issues 5 2020-10-17 2022-01-06
Updating this file for use with newer versions of Xperience CMS 0 2021-02-23 2022-08-16
Build Finished, Result: Failure 9 2022-03-24 2022-09-25
problem with flytos linux img on rpi4 2 2021-02-04 2022-08-05
Disable maxWidth on label which is a column children in ColumnSeries 4 2022-05-09 2022-08-31
hang when opening help - on Windows 6 2019-07-29 2022-08-07
how to implement a SampleProvider?,I want to send capture screen frame to livekit track directly ,use NewLocalSampleTrack 1 2022-05-19 2022-08-10
Pauli Transfer Matrix (PTM) superoperator 3 2022-03-20 2022-08-17
Custom SSL Certificates 5 2021-03-08 2022-09-08
LivingWithPixels (117K youtube subs) report and suggestions 3 2021-11-04 2022-08-15
Cannot start frpc with systemctl 3 2022-04-29 2022-09-20
files in `jsc.paths` starting with a dot don't turn into relative import when in the same directory 0 2022-05-05 2022-08-30
Ai defending a castle will just sit in there with his flying units taking ranged hits until they die 0 2022-06-10 2022-08-07
Can't give give sdcard permission / can't delete song on sdcard 8 2020-08-23 2022-09-20
Release added to appdata even if version didn't change 0 2021-02-21 2022-08-13
Cluster Major upgrade from centos8-12.6-4.6.2 to centos8-13.2-4.6.2 2 2022-06-23 2022-09-29
communities settings is missing after making communities default 1 2022-06-15 2022-08-22
Add `UniformGrid.ColumnSpacing` and `UniformGrid.RowSpacing` 1 2022-06-28 2022-08-27
Can't resolve URL for extensionless binary file 1 2022-06-20 2022-09-29
Content-Range header 0 2021-01-18 2022-09-24
PDF: implement text extraction 4 2021-06-04 2022-05-17
Add filter on listnodes command 1 2022-05-18 2022-09-20
broken fix: count just the right number of row #304 3 2022-07-11 2022-09-09
Panic When Creating Elastic IP using Golang 3 2022-03-16 2022-09-13
order error messages by most likely to solve the problem 6 2022-03-17 2022-09-15
403 (Forbidden) error when use .NET Table Storage SDK with DefaultAzureCredential 2 2021-09-25 2022-09-22
x/sys/windows/svc/mgr: Allow clients to request read-only access to the Service Control Manager and to individual services 3 2022-03-03 2022-09-22
Deploy PURITY_CHECKER and MSG_HASHER with via compile in testing 4 2018-05-30 2022-09-18
musl builds failing 2 2021-10-02 2022-01-07
File Editor (configurator) add-on needs external resources 1 2022-04-06 2022-09-14
Container creation failed. 1 2022-08-05 2022-08-05
Sticky headers can obscure important lines in peek view 0 2022-08-05 2022-08-05
Rancher pod shows [FATAL] invalid character '-' after object key:value pair 1 2022-02-06 2022-09-24
Spring cloud config server on refresh -> logback config springProperty can not get 4 2022-03-22 2022-09-11
fix(deps): update dependency fork-ts-checker-webpack-plugin to v6.3.1 0 2021-08-01 2022-08-14
add extra parameters to support changing etcd default ports 3 2021-11-10 2022-09-08
Handle AgumentedMemoizationPolicy config/feature disagreement 0 2022-01-11 2022-09-03