Comments (1)
Actually, the problem is not restricted to required arguments but also appears when explicitly requesting strategies for default argument via the ...
syntax, since the same name matching machinery is used and fails.
To be concrete, if the class was instead
@define
class MyClass:
_x: int = 0
then neither builds(MyClass, x=...)
nor builds(MyClass, _x=...)
would work.
from hypothesis.
Related Issues (20)
- Die Hard example uses outdated style of defining settings HOT 2
- Logging each test before running it HOT 1
- Can we consider optionally disabling automatic repr-printing and jsonification when `TESTCASE_CALLBACKS` are present? HOT 2
- How to exclude property? for `hypothesis.errors.ResolutionFailed: Could not infer a strategy for <django.db.models.fields.AutoField: id>` HOT 1
- Fix missing imports for `hypothesis write numpy.save`
- from_type fails on nested annotated type with mysterious error HOT 7
- `hypothesis.strategies.text` fails if min_size is (unreasonably) large HOT 2
- hypothesis.errors.InvalidArgument: min_size=8_640 is larger than Hypothesis is designed to handle HOT 1
- numpy arrays() strategy does not respect (unsigned) dtype (anymore) HOT 1
- Some type annotations for `hypothesis.extra.pandas` are missing HOT 1
- Generate `st.fixed_dictionaries()` with varied iteration orders
- Empty dictionaries generated with st.dictionaries and st.just despite expected behavior HOT 2
- Implement an Atheris fuzzing backend
- Stable support for symbolic execution HOT 8
- TypeError on CPython 3.13 for 6.99.2 HOT 1
- Investigate and fix lambda bug on Python 3.13
- Migrate our core representation to an IR layer HOT 14
- Structural difference between `sampled_from` and `one_of`: motivation and possible unification? HOT 2
- Internal error: tests using unique collections containing `nan` are flaky HOT 5
- Ideas for some strategy optimizations HOT 6
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 hypothesis.