Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add django stubs for HistoricForeignKey #1264

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

david-homelend
Copy link

add django stubs for HistoricForeignKey

@codecov
Copy link

codecov bot commented Sep 28, 2023

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

Copy link
Member

@ddabble ddabble left a comment

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