fix: setting builtins access to abbrevs (#4757)

This commit is contained in:
Noorhteen Raja NJ 2022-04-15 16:26:06 +05:30 committed by GitHub
parent 09a12e4e85
commit 8ec73c763a
Failed to generate hash of commit
2 changed files with 24 additions and 1 deletions

23
news/fix-abbrevs.rst Normal file
View file

@ -0,0 +1,23 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* fixed regression issue in loading `xontrib-abbrevs <https://github.com/xonsh/xonsh/pull/4757>`_
**Security:**
* <news item>

View file

@ -52,7 +52,7 @@ abbrevs: "dict[str, AbbrValType]" = dict()
# XSH.builtins is a namespace and extendable
XSH.builtins.abbrevs = abbrevs
proxy = DynamicAccessProxy("abbrevs", "__xonsh__.abbrevs")
proxy = DynamicAccessProxy("abbrevs", "__xonsh__.builtins.abbrevs")
builtins.abbrevs = proxy # type: ignore