Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

The Budget reform contract's household route errors in the qualification gate: policyengine.uk is None

クローズ 初心者向け
#650 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@MaxGhenis がすでに取り組んでいます。

2026年10月17日 から。

  • #651 @MaxGhenis による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
testing

調査の方向性

改革コントラクトの世帯ルートから始め、そのインポートを issue で示されている直接のモジュールパスと比較してください。policyengine-uk 2.134.7 に対して 1.1.0 コントラクトを実行します。世帯ルートが NoneType エラーなしで通れば完了です。

索引モデルが issue の本文から書いたものです。

説明

Every UK qualification candidate since the reform-contract gate went live has failed that gate on the wrapper.household route. The candidates are 2.134.5, 2.134.6 and 2.134.7: candidate PRs #639, #644 and #647.

The 2.134.7 attempt's report records 15 errors and 1 fail, all on wrapper.household, with:

AttributeError: 'NoneType' object has no attribute 'calculate_household'

Cause

  • scripts/check_uk_candidate.py sets POLICYENGINE_SKIP_COUNTRY_IMPORTS=1 when it is imported (line 43).
  • With that switch, policyengine/__init__.py sets policyengine.uk = None.
  • The contract's household route calls import policyengine as pe; pe.uk.calculate_household(...).

Locally, without the switch, the same route and versions pass. The full 1.1.0 contract on policyengine-uk 2.134.7 gives 773 pass, 0 fail and 0 error.

Fix

The route should import policyengine.tax_benefit_models.uk, the module policyengine.uk names, directly.

主要言語
Python
スター
8
フォーク
10
平均マージ
23時間 16分
マージ済み PR(30日)
49

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PolicyEngine/policyengine.py のほかの issue

PolicyEngine/policyengine.py の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。