Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Conversation

CTrando
Copy link
Contributor

@CTrando CTrando commented Jun 28, 2019

Making specialized functions more granular in the way that we can specify their parameters and have them handled just like normal functions, fixing test cases related to that, fixing documentation for TypeVar related to keyword only arguments.

I'll need this PR in first before #1230.

@CTrando CTrando changed the title Improving how arg set handles specialized function parameters [WIP]: Improving how arg set handles specialized function parameters Jun 28, 2019
@CTrando CTrando changed the title [WIP]: Improving how arg set handles specialized function parameters Improving how arg set handles specialized function parameters Jul 2, 2019
@CTrando CTrando changed the title Improving how arg set handles specialized function parameters [WIP]: Improving how arg set handles specialized function parameters Jul 4, 2019
@CTrando CTrando force-pushed the scratch/ArgSetParamsSpecializedFuncs branch from 4a5dc89 to 82a03de Compare July 4, 2019 01:39
@CTrando CTrando changed the title [WIP]: Improving how arg set handles specialized function parameters Improving how arg set handles specialized function parameters Jul 9, 2019
…cify their parameters and have them handled just like normal functions, fixing test cases related to that, fixing documentation for TypeVar related to keyword only arguments
@CTrando CTrando force-pushed the scratch/ArgSetParamsSpecializedFuncs branch from f32e266 to 3b52ed8 Compare July 9, 2019 23:31
@CTrando
Copy link
Contributor Author

CTrando commented Jul 11, 2019

To test that the change works correctly, I've tested:

  • Open function works fine after specifying its parameters

  • TypeVar function works fine after specifying its parameters - can look into argument set after calling TypeVar and see all of its variables correctly assigned.

  • Test with a function that does not have its arguments specified and verify that all its arguments became positional parameters.

  • Test for default values on specialized functions being set correctly

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, past some style nits. You'll want to remerge master and verify that things still work.

@CTrando CTrando merged commit 3170969 into microsoft:master Jul 15, 2019
jakebailey pushed a commit to jakebailey/python-language-server that referenced this pull request Nov 1, 2019
…oft#1263)

* Making specialized functions more granular in the way that we can specify their parameters and have them handled just like normal functions, fixing test cases related to that, fixing documentation for TypeVar related to keyword only arguments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants