-
Notifications
You must be signed in to change notification settings - Fork 889
Refactor CopilotClient initialization and enhance documentation #519
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
Open
brettcannon
wants to merge
15
commits into
github:main
Choose a base branch
from
brettcannon:api-changes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+192
−126
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
72041de
refactor(python): convert CopilotClient.__init__ from dict to keyword…
brettcannon 63b2238
feat(python): accept path-like objects in CopilotClient.__init__
brettcannon 816c396
docs(python): update README and exports for __init__ API changes
brettcannon 3835b34
Add @overload signatures to CopilotClient.__init__ for better type ch…
brettcannon 709ec4e
docs(python): document env param and nullable types in README
brettcannon 0563506
Merge remote-tracking branch 'upstream/main' into api-changes
brettcannon 11785ee
Merge branch 'main' into api-changes
brettcannon eda3e4f
refactor(tests): use os.fspath for Path-like arguments in TestPathLik…
brettcannon 537ed56
Fix a screw-up in a replay
brettcannon f90fe6a
docs: add cli_args option to CopilotClient documentation
brettcannon b161dd6
feat(tests): add os import for path handling in test_client.py
brettcannon d247f27
Fix formatting
brettcannon e574475
Update python/copilot/client.py
brettcannon fb582b9
Merge branch 'main' of https://github.com/github/copilot-sdk into api…
brettcannon 59db0b6
Simplify overloads by not setting any default values or return types
brettcannon 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
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
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.
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.
Managing all these overloads feels painful but if this is what you recommend as the most idiomatic Python solution then I'll gladly defer to you.
Do IDEs really not provide good hinting when passing an object literal in as an argument?
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.
I don't quite follow what you mean by "good hinting when passing an object literal"? The overloads are there for type checkers because you have arguments that are valid only in certain situations (e.g.
cli_argsonly applies whencli_pathis provided).