Skip to content

add django stubs for HistoricForeignKey#1264

Open
david-homelend wants to merge 1 commit into
django-commons:masterfrom
david-homelend:add_django_stubs
Open

add django stubs for HistoricForeignKey#1264
david-homelend wants to merge 1 commit into
django-commons:masterfrom
david-homelend:add_django_stubs

Conversation

@david-homelend

Copy link
Copy Markdown
Contributor

add django stubs for HistoricForeignKey

@codecov

codecov Bot commented Sep 28, 2023

Copy link
Copy Markdown

Codecov Report

Merging #1264 (b699a15) into master (fd9aa52) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1264   +/-   ##
=======================================
  Coverage   96.94%   96.95%           
=======================================
  Files          23       23           
  Lines        1277     1280    +3     
  Branches      210      210           
=======================================
+ Hits         1238     1241    +3     
  Misses         21       21           
  Partials       18       18           
Files Coverage Δ
simple_history/models.py 96.74% <100.00%> (+0.02%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ddabble ddabble left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple things:

  1. ForeignKey.__class_getitem__() was not added before Django 4.1, and since we support Django 3.2 until its EOL, we either have to wait until then to merge this PR, or we have to find a workaround.
  2. Would you mind explaining what the purpose is of adding these TypeVars when they're not used anywhere in the class body of HistoricForeignKey? 🙂

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.

2 participants