Commit d43fa58
Move _operation_context init to _ODataBase to eliminate duplication
Both sync and async clients had identical 2-line initialization:
ctx_obj = self.config.operation_context
self._operation_context = ctx_obj.user_agent_context if ctx_obj else None
Since self.config is already available in _ODataBase.__init__, this
belongs in the base class. Subclasses inherit it and use it when
building the User-Agent header.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 2642493 commit d43fa58
2 files changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 84 | | |
88 | 85 | | |
89 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
| |||
0 commit comments