mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
fix: setting builtins access to abbrevs (#4757)
This commit is contained in:
parent
09a12e4e85
commit
8ec73c763a
2 changed files with 24 additions and 1 deletions
23
news/fix-abbrevs.rst
Normal file
23
news/fix-abbrevs.rst
Normal 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>
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue