ENH: Make `deprecate_nonkeyword_arguments` alter function signature

This issue has been created since 2022-09-21.

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

Currently deprecate_nonkeyword_arguments does not alter the function signature. This means that help and ?? will show the deprecated signatures. This also affects recent attempts to achieve better typing of pandas using stubtest, e.g. see #47817 (review) and python/mypy#13703

Feature Description

Set the __signature__ attr on the decorated function

Alternative Solutions

Wait for all the removals to take place

Additional Context

No response

hauntsaninja wrote this answer on 2022-09-21

Opened PR at #48693 cc @twoertwein

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
the question has been solved。。 0 2022-03-02 2022-09-19
marked 解析不全 mavonEditor 保存的文本 4 2022-03-10 2022-08-31
ForceBasedI item exception in GitHub Pages mode 0 2021-11-11 2022-08-22
For other newbies: MacOS executable 1 2022-07-07 2022-08-21
Document command-line usage 0 2022-07-16 2022-08-21
Found new bug with select input 1 2022-07-28 2022-09-19
10-bit x265 files always default to Software Decoding and look washed out on Snapdragon 460 device 5 2021-12-04 2022-07-21
New mosquitto version breaks monitor functionality 8 2021-11-14 2022-09-07
did every step like described but no message deleted 1 2021-06-09 2022-09-19
High level API and/or documentation for working with WebSockets 7 2021-02-17 2022-09-27
[Feature] Shift-Tab and Tab for notion-enhanced-desktop 1 2022-04-07 2022-09-21
Spherized data UMAP figures 2 2021-04-14 2022-08-17
[Bug] Linking error with Dictionary and Attribute using DateTime 1 2022-06-05 2022-09-23
Support pfSense 5 2019-03-01 2021-12-16
[CT-896] [Feature] Add Jinja function which returns all `DBT_ENV_CUSTOM_ENV_ ` and `DBT_CLOUD_` environment variables 1 2022-07-25 2022-09-01
ffmpeg fail, job commandline MacOS M1 0 2022-08-18 2022-09-09
New Debian release 4 2021-10-02 2021-12-01
What fix to resolve 2 errors in 1.0.20190902 ? 5 2021-01-18 2022-09-27
Brightness increases before reducing to the set amount 1 2022-06-24 2022-09-27
A way to pass all the :gen_udp options? 0 2022-07-27 2022-09-07
Where's the GenSCTP support 4 2016-09-11 2022-09-07
Invoice looks different like on example pdf 1 2020-12-20 2022-09-11
IA1.5: Discovery: Spotlight search 2 2021-10-27 2022-07-31
Using ejs include in webpack dev middleware 0 2022-04-07 2022-09-05
Spine huge Freeze on adding to scene 7 2020-10-14 2022-08-17
enum values should honor collation 5 2022-08-08 2022-08-10
Pause Recording is not working for webcams 4 2022-09-16 2022-09-21
Extend the 'aad oauth2grant remove' command with `confirm` 2 2021-10-23 2022-09-22
Keep the `created_by_receipt_id` for implicit account pointing to the first TRANSFER action rather updating it on every TRANSFER action 0 2021-02-19 2022-09-07
Git - How to download the entire files from a particular commit 0 2020-03-03 2022-09-27
Add the ability to delete the default server 0 2022-06-16 2022-09-28
I've figured out how to get Windows 11 to recognise AdGuard DNS as encryptable, but I don't know which folder/page to add such info to 5 2022-06-28 2022-09-17
Text Overflow issue in mobile caniuse website 1 2022-09-07 2022-09-21
oninvalid is an html event attribute. I do not see it on caniuse 2 2022-09-05 2022-09-21
Rule to detect if the wrong number of parameters are passed to a sqlcommand 2 2021-11-29 2022-09-16
CtConstructor.getAvailableParameterAnnotations() returns wrong number of arguments for inner class with annotations 0 2022-01-26 2022-09-28
Math as a computed language 2 2022-01-15 2022-09-03
[请求]请问可以属性栏添加文件保存路径这一项吗? 0 2022-05-25 2022-09-13
RemovePasswordAsync() fails for an unconfirmed user 3 2022-03-28 2022-09-21
Probable error in documentation of HTTP method of "Create Load Balancer" command 0 2022-09-11 2022-09-26
Add different requirements (Quorum, Approval Threshold, etc) to different types of proposal on the same SnapShot 1 2021-12-30 2022-09-27
TypeDefs for Nuxt and Builder Class 12 2019-02-10 2021-09-27
support color inversion for accessibility 1 2021-08-25 2022-08-27
support `#r "nuget: <dep>"` syntax in scripts run via `dotnet fake run <script>` 9 2020-06-04 2022-08-31
upgrade of WindowsTerminal fails with 0x80070002 (System cant find the file specified) 7 2021-11-14 2022-09-13
[Feature Request] dialog 遮罩层会黑屏,调整页面大小又会恢复正常。class="v-modal"的锅 2 2022-06-20 2022-09-25
Reproduce the result of RegNetY 3 2020-09-03 2022-09-27
Create action to automatically fill the hole 2 2020-03-29 2022-09-27
[Translation] Entity constraints are not taken into account in the translation:extract 3 2022-01-17 2022-09-12
ValidateOnly when set true in CreatePartitions() is creating topic 1 2021-05-30 2022-09-03