Skip to content

Make type checks of scope search more restrictive#105

Open
theister wants to merge 2 commits intonoahmorrison:mainfrom
theister:bugfix/dont-mistake-string-builtins-for-sections
Open

Make type checks of scope search more restrictive#105
theister wants to merge 2 commits intonoahmorrison:mainfrom
theister:bugfix/dont-mistake-string-builtins-for-sections

Conversation

@theister
Copy link

When encountering a scope that is a str, we should not call getattr() on it and make a ducktyped check if it's actually a complex type. This could also return references to builtin functions of str, which in turn will cause unexpected behaviour downstream.

This PR fixes issue #104 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant