[arch-commits] Commit in python-typing_inspect/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Nov 19 19:09:58 UTC 2020


    Date: Thursday, November 19, 2020 @ 19:09:58
  Author: felixonmars
Revision: 757689

upgpkg: python-typing_inspect 0.6.0-4: add another fix for libcst (https://github.com/ilevkivskyi/typing_inspect/issues/60#issuecomment-636968833)

Modified:
  python-typing_inspect/trunk/PKGBUILD

----------+
 PKGBUILD |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-19 19:06:50 UTC (rev 757688)
+++ PKGBUILD	2020-11-19 19:09:58 UTC (rev 757689)
@@ -3,7 +3,7 @@
 _pkgname=typing_inspect
 pkgname=python-$_pkgname
 pkgver=0.6.0
-pkgrel=3
+pkgrel=4
 pkgdesc='Runtime inspection utilities for Python typing module'
 arch=('any')
 url='https://github.com/ilevkivskyi/typing_inspect'
@@ -21,6 +21,9 @@
 
   # https://github.com/ilevkivskyi/typing_inspect/issues/60
   patch -Np1 -i ../$pkgname-support-py39-generic-types.patch
+
+  sed -e '/res = tp.__args__/i \            if not hasattr(tp, "__args__"): return ()' \
+      -i typing_inspect.py
 }
 
 build() {



More information about the arch-commits mailing list