Fix tutorial: rename attr to urwid_attr#653
Conversation
Prevent stdlib `attr` shadowing in case of `sys.path` altered
|
@ulidtko without this PR changes, full regeneration of images in documentation is impossible :-( |
wardi
left a comment
There was a problem hiding this comment.
interesting, is there something special about the name attr?
I mixed in my memory dataclasses with "attrs" package. import attr
@attr.s
class Config:
a: dict[str, int] = attr.ib(factory=dict, ...And other code is generated |
|
so this change isn't actually required then |
Scripts location is added to |
|
the docs/tutorial directory isn't added to sys.path and these are scripts not modules to be imported, right? |
It's added automatically on run as script. As you can see, |
Prevent stdlib
attrshadowing in case ofsys.pathalteredFix: #649
Checklist
masterorpython-dual-supportbranchtoxsuccessfully in local environment