Skip to content
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

Improve way of accessing __annotations__ #216

Closed
wants to merge 0 commits into from

Conversation

MichaelSpece
Copy link
Contributor

@MichaelSpece MichaelSpece commented Jul 6, 2023

Changes

Use recommended way of accessing __annotations__ while maintaining backward compatibility.

Tests

I've added a test that catches the bug.

  • make test run locally
  • make fmt applied
  • relevant integration tests applied

MichaelSpece pushed a commit to MichaelSpece/databricks-sdk-py that referenced this pull request Jul 8, 2023
@nfx nfx linked an issue Jul 10, 2023 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Jul 10, 2023

Codecov Report

Patch coverage: 80.00% and no project coverage change.

Comparison is base (3a2d2e6) 53.08% compared to head (b363b68) 53.08%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #216   +/-   ##
=======================================
  Coverage   53.08%   53.08%           
=======================================
  Files          32       32           
  Lines       18558    18562    +4     
=======================================
+ Hits         9851     9854    +3     
- Misses       8707     8708    +1     
Impacted Files Coverage Δ
databricks/sdk/core.py 67.42% <80.00%> (+0.04%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

MichaelSpece pushed a commit to MichaelSpece/databricks-sdk-py that referenced this pull request Jul 11, 2023
@nfx nfx changed the title Fix #215 Improve way of accessing __annotations__ Jul 17, 2023
@nfx
Copy link
Contributor

nfx commented Jul 17, 2023

@MichaelSpece please apply code formatting (make fmt)

MichaelSpece added a commit to MichaelSpece/databricks-sdk-py that referenced this pull request Jul 17, 2023
MichaelSpece added a commit to MichaelSpece/databricks-sdk-py that referenced this pull request Jul 17, 2023
@MichaelSpece
Copy link
Contributor Author

@nfx Done. Please let me know what else might be required.

@nfx
Copy link
Contributor

nfx commented Jul 17, 2023

@MichaelSpece let github actions tell the truth! :)

MichaelSpece pushed a commit to MichaelSpece/databricks-sdk-py that referenced this pull request Jul 17, 2023
MichaelSpece pushed a commit to MichaelSpece/databricks-sdk-py that referenced this pull request Jul 17, 2023
MichaelSpece added a commit to MichaelSpece/databricks-sdk-py that referenced this pull request Jul 17, 2023
MichaelSpece added a commit to MichaelSpece/databricks-sdk-py that referenced this pull request Jul 17, 2023
mgyucht pushed a commit that referenced this pull request Jul 26, 2023
## Changes
This is a continuation of #216, but with signed, verified commits.

## Tests
One test was added (in #216).  The last run in #216 passed all tests.

- [ ] `make test` run locally
- [ ] `make fmt` applied
- [ ] relevant integration tests applied
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accessing __annotations__
3 participants