Comments (5)
@judahrand are you aware of mypy's --implicit-optional
behaviour? The foo: str = None
style is valid when using that option. (I don't know if other checkers have a similar behaviour, though it's likely they do)
I appreciate that not everyone uses that style (and I would personally discourage library authors from doing so as being explicit is usually clearer), however my understanding is that the spelling used in this project shouldn't impact how your project is type-checked. If it does, that may be a bug (e.g: python/mypy#9208) in your type checker and/or you may need to configure handling of implicit optionals if it's intentional that this project uses that style.
from databricks-sdk-py.
To be honest, this project doesn't make use of mypy typechecking quite yet. We've been meaning to add support for it, and I think we'd be open to discussion about whether enabling --implicit-optional
is preferable or not for this project.
from databricks-sdk-py.
I think that using explicit Optional
is probably preferable given that not using it requires downstream consumers to have to configure their type checker correctly vs just using the defaults.
from databricks-sdk-py.
This seems reasonable to me, especially as this seems to be the direction that mypy and the ecosystem are moving towards.
from databricks-sdk-py.
This seems reasonable to me, especially as this seems to be the direction that mypy and the ecosystem are moving towards.
This might not be the right place to raise this but it would be nice if this could be changed/updated in databricks-connect
too. I'd open a PR but unfortunately the source isn't available anywhere other that PyPi.
from databricks-sdk-py.
Related Issues (20)
- [ISSUE] Can't get run result for notebook runs longer than 20 minutes
- [ISSUE] Creating Personal Cluster failed "Validation failed for data_security_mode" HOT 3
- [ISSUE] type_precision and type_scale in columns info are not correct HOT 4
- sql connection using service principal to specific table HOT 2
- [ISSUE] Cannot use AccountClient commands after creating a new WorkspaceClient HOT 3
- [ISSUE] serving_endpoints.patch bug
- [ISSUE] sql query list method not returning the query folder information
- Endless loop in query history implementation HOT 1
- HTTP_PROXY proxy use HOT 1
- [FEATURE] Upload folder support in files.py
- cp should allow you to set the overwrite parameter
- [ISSUE] Misleading and wrong type hinting for boolean parameters in jobs.list and jobs.list_runs HOT 1
- [ISSUE] service_principal_id has a wrong type HOT 3
- [ISSUE] query_history.list() gets stuck on the same page_token HOT 1
- [ISSUE] When trying to use dbutils for interacting with Volumes through fs, an error pops up stating "PermissionDenied: No operations allowed on this path." HOT 3
- [ISSUE] client.users.create error HOT 1
- [FEATURE] `ValidationResultOperation` for UC storage credential validation should include `PATH_EXISTS` and `HIERARCHICAL_NAMESPACE_ENABLED` HOT 1
- [ISSUE] IAM permissions documentation issue for request_object_type in the case of SQL Warehouses HOT 1
- [ISSUE] groups API uses an outdated endpoint HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from databricks-sdk-py.