- setattr(_client, o, getattr(overrides, o))
+ if not "Facade" in o:
+ # Override stuff in _definitions, which is all imported
+ # into _client. We Monkey patch both the original class and
+ # the ref in _client (import shenanigans are fun!)
+ setattr(_definitions, o, getattr(overrides, o))
+ setattr(_client, o, getattr(overrides, o))
+ # We shouldn't be overriding Facades!
+ else:
+ raise ValueError(
+ "Cannot override a versioned Facade class -- you must patch "
+ "it instead.")