0bcb020930
Accepting request 823277 from home:bnavigator:branches:devel:languages:python
Matej Cepl2020-07-29 10:41:46 +00:00
32254a343e
Accepting request 823277 from home:bnavigator:branches:devel:languages:python
Matej Cepl2020-07-29 10:41:46 +00:00
c733a89df7
- update to 1.5.0 - fix tests * Convert host to lowercase on URL building. #386 * Allow using mod operator (%) for updating query string (an alias for update_query() method) * Allow use of sequences such as list and tuple in the values of a mapping such as dict to represent that a key has many values: url = URL("http://example.com") assert url.with_query({"a": [1, 2]}) == URL("http://example.com/?a=1&a=2") * Support URL.build() with scheme and path (creates a relative URL) * Cache slow IDNA encode/decode calls * Add @final / Final type hints * Support URL authority/raw_authority properties and authority argument of URL.build() method * Hide the library implementation details, make the exposed public list very clean * Fix tests with newer Python (3.7.6, 3.8.1 and 3.9.0+) * Fix a bug where query component, passed in a form of mapping or sequence, is unquoted in unexpected way * Hide Query and QueryVariable type aliases in __init__.pyi, now they are prefixed with underscore. * Keep ipv6 brackets after updating port/user/password.
Ondřej Súkup2020-07-28 19:17:40 +00:00
f719c587c4
- update to 1.5.0 - fix tests * Convert host to lowercase on URL building. #386 * Allow using mod operator (%) for updating query string (an alias for update_query() method) * Allow use of sequences such as list and tuple in the values of a mapping such as dict to represent that a key has many values: url = URL("http://example.com") assert url.with_query({"a": [1, 2]}) == URL("http://example.com/?a=1&a=2") * Support URL.build() with scheme and path (creates a relative URL) * Cache slow IDNA encode/decode calls * Add @final / Final type hints * Support URL authority/raw_authority properties and authority argument of URL.build() method * Hide the library implementation details, make the exposed public list very clean * Fix tests with newer Python (3.7.6, 3.8.1 and 3.9.0+) * Fix a bug where query component, passed in a form of mapping or sequence, is unquoted in unexpected way * Hide Query and QueryVariable type aliases in __init__.pyi, now they are prefixed with underscore. * Keep ipv6 brackets after updating port/user/password.
Ondřej Súkup2020-07-28 19:17:40 +00:00
a94bbd7019
- update to 1.3.0 * Fix annotations for query parameter * An incoming query sequence can have int variables * Add URL.explicit_port property * Give a friendlier error when port cant be converted to int * bool(URL()) now returns False * Fix annotations for build * Fix annotations for cached_property * Accept str subclasses in URL constructor * Forbid inheritance, replace __init__ with __new__ * Support PEP-561 (provide type hinting marker)
Ondřej Súkup2019-03-03 13:54:08 +00:00
2a0e2583af
- update to 1.3.0 * Fix annotations for query parameter * An incoming query sequence can have int variables * Add URL.explicit_port property * Give a friendlier error when port cant be converted to int * bool(URL()) now returns False * Fix annotations for build * Fix annotations for cached_property * Accept str subclasses in URL constructor * Forbid inheritance, replace __init__ with __new__ * Support PEP-561 (provide type hinting marker)
Ondřej Súkup2019-03-03 13:54:08 +00:00