Upgrading hypothesis 0.3 to 0.4
Unknown0.3.2 → 0.4.3
UnknownUpgrade verdict
DepDelta hasn't looked for this range's notes yet, so breaking changes can't be ruled out.
In plain terms
- DepDelta hasn't finished looking for the notes in this range, so it can't rule out breaking changes yet.
Must act Unknown for releases without notes
Releases without notes may still need changes. Check their commits before upgrading.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- added:
class ExampleDatabase(object) - added:
class Storage(object) - added:
constructor ExampleDatabase(converters=…, backend=…, format=…) - added:
constructor Storage(backend, descriptor, converter, strategy, format, database) - added:
export BadData - added:
export ConverterTable - added:
export HashItAnyway - added:
export JSONFormat - added:
export NotSerializeable - added:
export SQLiteBackend - added:
export Tracker - added:
export nice_string - added:
method ExampleDatabase.storage_for(descriptor) - added:
method Storage.fetch() - added:
method Storage.save(value)
- added:
class Backend(object) - added:
class SQLiteBackend(Backend) - added:
constructor SQLiteBackend(path=…) - added:
method Backend.data_type() - added:
method Backend.delete(key, value) - added:
method Backend.fetch(key) - added:
method Backend.save(key, value) - added:
method SQLiteBackend.create_db_if_needed() - added:
method SQLiteBackend.data_type() - added:
method SQLiteBackend.delete(key, value) - added:
method SQLiteBackend.fetch(key) - added:
method SQLiteBackend.save(key, value)
- added:
class BadData(ValueError) - added:
class BinaryConverter(Converter) - added:
class CollectionConverter(Converter) - added:
class ComplexConverter(Converter) - added:
class Converter(object) - added:
class ConverterTable(SpecificationMapper) - added:
class FixedKeyDictConverter(Converter) - added:
class FloatConverter(Converter) - added:
class GenericConverter(Converter) - added:
class JustConverter(Converter) - added:
class ListConverter(Converter) - added:
class NotSerializeable(Exception) - added:
class OneOfConverter(Converter) - added:
class RandomConverter(Converter) - added:
class SampledFromConverter(Converter) - added:
class TextConverter(Converter) - added:
class TupleConverter(Converter) - added:
class WrongFormat(ValueError) - added:
constructor CollectionConverter(list_converter, collection_type) - added:
constructor ComplexConverter(float_converter) - added:
constructor ConverterTable(strategy_table=…) - added:
constructor FixedKeyDictConverter(dict_strategy, dict_of_converters) - added:
constructor GenericConverter(strategy) - added:
constructor JustConverter(value) - added:
constructor ListConverter(child_converter) - added:
constructor NotSerializeable(descriptor) - added:
constructor OneOfConverter(converters, strategies) - added:
constructor SampledFromConverter(choices) - added:
constructor TupleConverter(tuple_converters, tuple_type) - added:
function check_data_type(typ, value) - added:
function check_length(l, value) - added:
function check_matches(strategy, value) - added:
function check_type(typ, value, e=…) - added:
function define_collection_converter(converters, descriptor) - added:
function define_list_converter(converters, descriptor) - added:
function define_one_of_converter(converter_table, descriptor) - added:
function not_serializeable(s, d) - added:
method BinaryConverter.from_basic(data) - added:
method BinaryConverter.to_basic(value) - added:
method CollectionConverter.from_basic(value) - added:
method CollectionConverter.to_basic(value) - added:
method ComplexConverter.from_basic(c) - added:
method ComplexConverter.to_basic(value) - added:
method Converter.from_basic(value) - added:
method Converter.to_basic(value) - added:
method ConverterTable.mark_not_serializeable(descriptor) - added:
method ConverterTable.missing_specification(descriptor) - added:
method FixedKeyDictConverter.from_basic(value) - added:
method FixedKeyDictConverter.to_basic(value) - added:
method FloatConverter.from_basic(value) - added:
method FloatConverter.to_basic(value) - added:
method GenericConverter.from_basic(value) - added:
method GenericConverter.to_basic(value) - added:
method JustConverter.from_basic(c) - added:
method JustConverter.to_basic(c) - added:
method ListConverter.from_basic(value) - added:
method ListConverter.to_basic(value) - added:
method OneOfConverter.from_basic(value) - added:
method OneOfConverter.to_basic(value) - added:
method RandomConverter.from_basic(c) - added:
method RandomConverter.to_basic(value) - added:
method SampledFromConverter.from_basic(value) - added:
method SampledFromConverter.to_basic(value) - added:
method TextConverter.from_basic(c) - added:
method TextConverter.to_basic(c) - added:
method TupleConverter.from_basic(value) - added:
method TupleConverter.new_tuple(value) - added:
method TupleConverter.to_basic(value)
- added:
class Format(object) - added:
class JSONFormat(Format) - added:
method Format.data_type() - added:
method Format.deserialize_data(data) - added:
method Format.serialize_basic(value) - added:
method JSONFormat.data_type() - added:
method JSONFormat.deserialize_data(data) - added:
method JSONFormat.serialize_basic(value)
- added:
class ExampleSource(object) - added:
constructor ExampleSource(random, strategy, storage, min_parameters=…, min_tries=…) - added:
method ExampleSource.draw_parameter_score(i) - added:
method ExampleSource.mark_bad() - added:
method ExampleSource.new_parameter() - added:
method ExampleSource.pick_a_parameter()
- added:
function multi_minimize(values, interesting, simplify, complexity)
- added:
class ClassMap(object) - added:
constructor ClassMap() - added:
method ClassMap.all_mappings(key) - added:
method ClassMap.setdefault(key, value)
- added:
variable ARG_NAME_ATTRIBUTE - added:
variable PY3 - added:
variable binary_type - added:
variable hrange - added:
variable hunichr - added:
variable integer_types - added:
variable text_type
- added:
class ExtMethod(object) - added:
constructor ExtMethod() - added:
method ExtMethod.extend(typ)
- removed:
function sort_in_subclass_order(xs, get_class=…) - added:
method SpecificationMapper.clear_cache() - added:
method SpecificationMapper.find_specification_handlers_for(descriptor) - added:
static method SpecificationMapper.clear_default()
- removed:
function memoized(f)
- added:
function actually_equal(x, y, fuzzy=…) - added:
function actually_in(x, ys, fuzzy=…) - added:
function complex_equality(x, y, fuzzy=…) - added:
function complex_string(x) - added:
function dict_equality(x, y, fuzzy=…) - added:
function dict_string(xs) - added:
function float_equality(x, y, fuzzy=…) - added:
function float_string(xs) - added:
function frozenset_string(xs) - added:
function generic_equality(x, y, fuzzy) - added:
function generic_string(xs) - added:
function is_nasty_float(x) - added:
function list_string(xs) - added:
function nice_string(xs) - added:
function primitive_equality(x, y, fuzzy) - added:
function real_index(xs, y, fuzzy=…) - added:
function sequence_equality(x, y, fuzzy=…) - added:
function set_equality(x, y, fuzzy=…) - added:
function set_string(xs) - added:
function tuple_string(xs) - added:
function type_string(xs) - added:
variable equality - added:
variable nice_string_method - added:
variable primitives
- added:
function dict_hash(x) - added:
function generic_hash(x) - added:
function normal_hash(x) - added:
function type_hash(x) - added:
variable hash_everything_method
- removed:
variable ARG_NAME_ATTRIBUTE - added:
function arg_string(f, args, kwargs) - added:
function convert_positional_arguments(function, args, kwargs)
- changed:
constructor BiasedCoin(p) → constructor BiasedCoin(probability)
- removed:
class RandomWithSeed(r.Random) - removed:
constructor OneCharStringStrategy(characters=…) - removed:
constructor RandomWithSeed(seed) - removed:
function mix_generators(*generators) - removed:
function nice_string(xs) - removed:
property MappedSearchStrategy.parameter - changed:
constructor SampledFromStrategy(elements) → constructor SampledFromStrategy(elements, descriptor=…) - added:
class ExampleAugmentedStrategy(SearchStrategy) - added:
class FullRangeFloats(FloatStrategy) - added:
class JustIntFloats(FloatStrategy) - added:
class NastyFloats(SampledFromStrategy) - added:
class mix_generators(object) - added:
constructor ExampleAugmentedStrategy(main_strategy, examples) - added:
constructor JustIntFloats(int_strategy) - added:
constructor NastyFloats() - added:
constructor mix_generators(generators) - added:
field FullRangeFloats.parameter - added:
field OneCharStringStrategy.ascii_characters - added:
field OneCharStringStrategy.parameter - added:
field SearchStrategy.descriptor - added:
field SearchStrategy.parameter - added:
function compose_float(sign, exponent, fraction) - added:
method BinaryStringStrategy.could_have_produced(value) - added:
method BinaryStringStrategy.decompose(value) - added:
method BoundedIntStrategy.could_have_produced(i) - added:
method ExampleAugmentedStrategy.copy(value) - added:
method ExampleAugmentedStrategy.could_have_produced(value) - added:
method ExampleAugmentedStrategy.decompose(value) - added:
method ExampleAugmentedStrategy.produce(random, pv) - added:
method ExampleAugmentedStrategy.simplify(value) - added:
method FixedKeysDictStrategy.could_have_produced(value) - added:
method FixedKeysDictStrategy.decompose(value) - added:
method FloatStrategy.could_have_produced(value) - added:
method FullRangeFloats.could_have_produced(value) - added:
method FullRangeFloats.produce(random, pv) - added:
method JustIntFloats.produce(random, pv) - added:
method ListStrategy.could_have_produced(value) - added:
method ListStrategy.decompose(value) - added:
method MappedSearchStrategy.could_have_produced(value) - added:
method MappedSearchStrategy.decompose(value) - added:
method OneOfStrategy.decompose(value) - added:
method SearchStrategy.decompose(value) - added:
method SearchStrategy.draw_and_produce(random) - added:
method StringStrategy.could_have_produced(value) - added:
method StringStrategy.decompose(value) - added:
method TupleStrategy.decompose(value) - added:
method mix_generators.next()
- changed:
constructor Settings(min_satisfying_examples=…, max_examples=…, max_skipped_examples=…, timeout=…, derandomize=…) → constructor Settings(min_satisfying_examples=…, max_examples=…, max_skipped_examples=…, timeout=…, derandomize=…, database=…) - added:
function set_or_default(self, name, value) - added:
variable DATABASE_OVERRIDE - added:
variable USE_DEFAULT
- added:
class StatefulConverter(Converter) - added:
constructor StatefulConverter(format_table, descriptor) - added:
method StatefulConverter.from_basic(data) - added:
method StatefulConverter.to_basic(value)
- added:
constructor StrategyTable(prototype=…, examples_for=…) - added:
method StrategyTable.augment_with_examples(examples_for)
- added:
class RandomWithSeed(Random) - added:
constructor RandomWithSeed(seed)
- added:
method Verifier.examples_for(descriptor)