Skip to content

refactor: streamline msgspec JSON decoder imports by directly importing Decoder#479

Merged
fllesser merged 1 commit intomasterfrom
refactor/import
Feb 26, 2026
Merged

refactor: streamline msgspec JSON decoder imports by directly importing Decoder#479
fllesser merged 1 commit intomasterfrom
refactor/import

Conversation

@fllesser
Copy link
Owner

No description provided.

@github-actions
Copy link

类型 PIL 耗时(秒) HTML 耗时(秒) 渲染所用图片总大小(MB) PIL 导出图片大小(MB) HTML 导出图片大小(MB)
微博视频 0.01501 0.94260 0.01280 0.03432 0.17000
微博视频2 0.01524 0.93271 0.01280 0.03541 0.17206
微博纯文2 0.03280 1.00337 0.00605 0.12023 0.28607
微博转发纯文 0.06749 1.15995 0.01382 0.24414 0.40196
微博转发(横图) 0.18226 1.43464 1.26621 0.48412 1.43761
哔哩哔哩动态 0.27490 1.89850 0.01244 0.18458 0.41459
微博转发(竖图) 0.28144 2.03784 1.33334 0.41583 2.48094
微博图集(超过9张) 0.29945 8.61016 1.01620 0.31806 0.68861
微博图集(3张) 0.33102 5.96788 2.73813 0.34359 0.93089
微博图集(2张) 0.34881 1.17391 4.88308 0.64458 1.68558
bilibili-read 0.36128 2.44014 0.47975 1.35513 2.58685
微博图集(4张) 0.39722 1.67418 2.34023 0.72816 1.69757
bilibili-opus 0.49428 2.79003 1.21296 1.35135 2.35157
微博图集(9张) 1.27389 1.86963 10.98936 0.98579 2.37885

@codecov
Copy link

codecov bot commented Feb 26, 2026

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
44 1 43 1
View the top 1 failed test(s) by shortest run time
tests.parsers.test_bilibili::test_dynamic
Stack Traces | 0.785s run time
tests/parsers/test_bilibili.py:87: in test_dynamic
    await asyncio.gather(*[test_parse_dynamic(dynamic_url) for dynamic_url in dynamic_urls])
tests/parsers/test_bilibili.py:76: in test_parse_dynamic
    result = await parser.parse_dynamic_or_opus(dynamic_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../parsers/bilibili/__init__.py:167: in parse_dynamic_or_opus
    return await self._parse_bilibli_api_opus(dynamic.turn_to_opus())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../parsers/bilibili/__init__.py:196: in _parse_bilibli_api_opus
    opus_info = await bili_opus.get_info()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.14.../site-packages/bilibili_api/opus.py:102: in get_info
    await Api(**api, credential=self.credential)
.venv/lib/python3.14.../bilibili_api/utils/network.py:2385: in result
    return await self.request()
           ^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.14.../bilibili_api/utils/network.py:2375: in request
    raise e
.venv/lib/python3.14.../bilibili_api/utils/network.py:2368: in request
    return await self._request(raw=raw, byte=byte)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.14.../bilibili_api/utils/network.py:2334: in _request
    ret = self._process_response(resp=resp, raw=raw)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.14.../bilibili_api/utils/network.py:2304: in _process_response
    raise ResponseCodeException(code, msg, resp_data)
E   bilibili_api.exceptions.ResponseCodeException.ResponseCodeException: 接口返回错误代码:-352,信息:-352。
E   {'code': -352, 'message': '-352', 'ttl': 1}

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@fllesser fllesser changed the title refactor: streamline msgspec JSON decoder and error imports by directly importing Decoder and DecodeError. refactor: streamline msgspec JSON decoder and error imports by directly importing Decoder Feb 26, 2026
@fllesser fllesser changed the title refactor: streamline msgspec JSON decoder and error imports by directly importing Decoder refactor: streamline msgspec JSON decoder imports by directly importing Decoder Feb 26, 2026
@fllesser fllesser merged commit 4b8f33f into master Feb 26, 2026
13 of 15 checks passed
@fllesser fllesser deleted the refactor/import branch February 26, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant