Kadir Can Ozden

Results issues of Kadir Can Ozden

Fixes #1236. `isoparse("2021-W53-1")` currently returns `2022-01-03` without error, even though year 2021 only has 52 ISO weeks. This can produce confusing results since the returned date doesn't actually belong to...

## Summary `rrulebase._iter_cached` can deadlock because the cache lock is not released on two of the three exit paths from the refill block. ## Problem The lock is acquired at...

## Summary `_tzicalvtz._find_comp` raises `TypeError` when falling back to the first timezone component in an iCalendar VTIMEZONE that has no STANDARD component. ## Problem In the `for...else` fallback path (when...

Fixes two crashes that happen when `process_file` encounters malformed image files: **1. HEIC files with non-ASCII box types (#245)** `HEICExifFinder.next_box()` calls `self.get(4).decode("ascii")` on the raw box type bytes, which blows...

## Summary `generate_enum_convertor` silently returns `None` when it receives a value that's already an enum member. This happens when an enum parameter has a user-defined callback — the value gets...

bug

When `include_subclasses` is called from within a structure hook factory (which itself runs during `make_dict_structure_fn`), it overwrites `already_generating.working_set` with its own set and then resets it to an empty set....

### Description `Numeric.result_processor` computes the decimal return scale inline, bypassing the `decimal_return_scale` parameter, while `Float.result_processor` correctly uses `_effective_decimal_return_scale`. ### Current behavior ```python # Numeric.result_processor - ignores decimal_return_scale return processors.to_decimal_processor_factory( decimal.Decimal,...

In `_response_closed`, the `del self._events[stream_id]` happens **outside** the `_state_lock`, but the `not self._events` check that decides whether to transition to IDLE happens **inside** the lock. This creates a race window...

In the HTTP/2 implementation, `handle_async_request` / `handle_request` acquires a `_max_streams_semaphore` permit before getting a stream ID. If `get_next_available_stream_id()` raises `NoAvailableStreamIDError`, the exception handler correctly sets `_used_all_stream_ids` and decrements the request...

Fixes #113. `IsNow(unix_number=True, tz="UTC")` was failing because `datetime.fromtimestamp()` was called without a timezone, creating a naive datetime. When the `approx` datetime has timezone info (from the `tz` parameter), `approx_equals()` then...