File: 001-fix-staticmethod.patch

package info (click to toggle)
freezegun 1.2.1%2Bactually1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 320 kB
  • sloc: python: 1,910; makefile: 22
file content (15 lines) | stat: -rw-r--r-- 510 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Karthikeyan Singaravelan
Description: Fix Python 3.10 callable staticmethods
Forwarded: not-needed

--- a/freezegun/api.py
+++ b/freezegun/api.py
@@ -599,7 +599,7 @@
                         continue
                     seen.add(attr)
 
-                    if not callable(attr_value) or inspect.isclass(attr_value):
+                    if not callable(attr_value) or inspect.isclass(attr_value) or isinstance(attr_value, staticmethod):
                         continue
 
                     try: