#34233: Drop support for Python 3.8 & 3.9.
-------------------------------------+-------------------------------------
     Reporter:  Mariusz Felisiak     |                    Owner:  Mariusz
         Type:                       |  Felisiak
  Cleanup/optimization               |                   Status:  closed
    Component:  Core (Other)         |                  Version:  dev
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"170b0a47b09d735132bcfdcc9b303397eb03b34b" 170b0a47]:
 {{{
 #!CommitTicketReference repository=""
 revision="170b0a47b09d735132bcfdcc9b303397eb03b34b"
 Refs #34233 -- Used @staticmethod with
 TextChoices._generate_next_value_().

 Now that Python 3.10 is the minimum supported version, we can decorate
 _generate_next_value_() with @staticmethod. It wasn't possible before
 as Python < 3.10 does not support calling static methods direct from
 the class body.

 https://docs.python.org/3/library/enum.html#enum.Enum._generate_next_value_
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34233#comment:14>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018a8d62b4c8-cafb922e-842e-4177-af86-b2309bcd8539-000000%40eu-central-1.amazonses.com.

Reply via email to