Crazy technical issue... I'm creating a set of "helper tools" for power editors in an enterprise environment. Ideally the tools will run correctly when the user is "in an arcmap edit session" or not. I'd be fine with forcing them users to only be in an edit session when using the tools but the problem there is that after edits are made by the tool. The arcmap editor doesn't seem to know changes have been made; clicking the "stop editing" button doesn't present the user with the save option and dumps the edits. This is probably an edge case but --- man --- will users be mad if they lose edits and the proper attribution doesn't get pushed during a reconcile/post.
Details below. You can also grab the source file in this repo: GitHub - fspataro/PYT-EditingIssues: Demostration of issues use ArcGIS PYT tools with an ArcMap edit...
It seems like my choice is use the full script edit session management and sink the error on stopEditing so it works in and out of the ArcMap edit session or don't use the script edit session and the user can only work in an ArcMap session and might not get the prompt.